ESP32 draft project to report data from soil moisture sensor to AWS IoT cloud topic (Initial design for Aliexpress ESP32 moisture sensor boards with DHT11 - similar to Wemos Higrow - see picture below)
- Connects to WiFi network, synchronizes time from NTP.
- Reads analog data from Moisture sensor on PIN 32
- Reads temperature/humidity data from DHT11 sensor on PIN 22 (soldered on board)
- Connects to AWS and gets shadow to receive update inverval
- Publishes sensor raw data to MQTT topic in JSON format and then goes to deep sleep for inverval configured in shadow.
Example of module that is used for this project: