I'm working on an AI-driven IoT Smart Plant Monitor project using an ESP8266 (NodeMCU), and I want to connect it to Azure IoT Hub.
Currently, I am using:
ESP8266 NodeMCU
Azure IoT Hub
BH1750 light sensor, DHT11, and soil moisture sensor
I plan to send sensor data (temperature, humidity, soil moisture, and light intensity) to Azure IoT Hub and possibly trigger some automated actions based on the data.
I would appreciate help with:
How to authenticate and register my ESP8266 with Azure IoT Hub.
Which libraries are recommended for connecting ESP8266 to Azure IoT Hub (e.g., using MQTT or another protocol).
Sample code or references for sending telemetry data from the ESP8266 to Azure IoT Hub.
If there are any additional steps or prerequisites (like creating an IoT Hub device or configuring connection strings), please let me know.
Thanks in advance for your help!