This project logs temperature, humidity, and soil moisture data using an ESP8266 microcontroller and sends the data to Adafruit IO. Components used
- ESP8266 Microcontroller
- DHT11 temperature & humidity sensor
- Soil moisture sensor ("Capacitive Soil Moisture Sensor V1.2")
-
Hardware connections:
- DHT11: Connect to GPIO14 (D5)
- Soil Moisture Sensor: Connect to A0 (ADC)
-
Software requirements:
- MicroPython installed on ESP8266
-
Human requirements:
- A smile on your face
-
Configuration:
- Update
config.py
with your Adafruit IO username and API key.
- Update
-
Upload Code:
- Flash the provided MicroPython script to the ESP8266.
- See https://github.com/wendlers/mpfshell
mpfshell -n -c "open tty.usbserial-529A0037391; put boot.py"
-
Run:
- Power the ESP8266 and monitor the serial output for data readings and status messages.
-
Data Logging:
- Data is sent to Adafruit IO feeds for neat dashboards you can show your friends and claim you didn't waste an entire weekend working on this project..