How erikssonjohannes/humidity-and-temperature-sensors-for-monitoring-plants-iot-project works
This is a small MicroPython plant-monitoring device: it samples air temperature, air humidity, and soil moisture, converts the soil reading to a percentage, and publishes the measurements to Adafruit IO. The main loop owns Wi-Fi setup, MQTT connection and periodic sampling; mqtt.py implements the MQTT client used to connect and publish. The README also describes dashboard visualization and webhook use, but no corresponding implementation is visible in the supplied files, so these capabilities are not expanded into code components. Edges reflect the excerpts and README; no unsampled source was inspected.
Main entry points: main.py Sampling loop · mqtt.py MQTT client
Components 9
Sensing
- DHT11 sensor
- Soil sensor
- Read and normalize
main.py
Device connectivity
- Wi-Fi connection
main.py - Sampling loop
main.py
MQTT transport
- MQTT client
mqtt.py
Cloud monitoring
- Adafruit IO
- Data dashboard
Other components
- Plant owner
Connections 10
- Plant owner → DHT11 sensor: places near plant
README.md - Plant owner → Soil sensor: inserts in soil
README.md - Sampling loop → Wi-Fi connection: connects via
main.py - Sampling loop → Read and normalize: calls periodically
main.py - Read and normalize → DHT11 sensor: reads
main.py - Read and normalize → Soil sensor: reads
main.py - Sampling loop → MQTT client: connects and publishes
main.py - MQTT client → Adafruit IO: sends MQTT data
README.md - Adafruit IO → Data dashboard: visualizes feeds
README.md - Adafruit IO → Plant owner: shows readings
README.md