Hello @Thales Vignoli ,
sending messages to the IoT Hub is not that hard.
Can you please share the link to the library? Which example did you use are base for it?
Do you say you can send messages to the ESP32? Is this a Direct Method? or a Device Twin desired property? or a cloud message?
And, have you tried the IoT Explorer for incoming telemetry?
You connect Azure Stream Analytics. If you combine this with the routing feature on the IoT Hub, you need to specify this specific 'events' route.
Also, be aware of the consumer groups. Reusing the same $default for multiple services (and IoT Explorer) can corrupt data streams to other services.