Hello @Pim Klaassen
welcome to this moderated Azure community forum.
The route on the edge seems correct regarding the output to the IoT Hub.
The route in the IoT Hub seems pretty standard too.
It is recommended to make use of the Azure IoT Edge module template as seen in the Visual Studio Code extension for Azure IoT Edge:
This provides automatically the framework for a default module that listens for incoming messages.
As you can see, it makes use of the:
client = IoTHubModuleClient.create_from_edge_environment()
This should be sufficient.
You could always use an extra debug module like this echo module to test the output of your Python module.
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.