-
1Connect DHT11
Connect the DHT11 power and ground to the power/ground rails of the breadboard. Then, connect the data pin to a 300 ohm resistor that goes to power and to a digital input of the ESP32 (pinout of ESP32 and DHT11 can be easily found online).
-
2Connect Photoresistor
Connect long side of photoresistor to power and the other side to a 10 kohm resistor. Connect that resistor to ground. Connect the high voltage side of the resistor to and ADC input of the ESP32.
-
3Connect Soil Moisture Sensor
The SMS comes in two parts which must be connected to each other via 2 female-female wires. Connect the PCB side of the SMS to the breadboard, connect power/ground pins, and connect the ANALOG data pin to an ADC pin of the ESP32.
-
4Download PlatformIO/Upload Code
Using a USB to UART connector, upload the code from main.cpp to the ESP32 through the PlatformIO environment (use VSCode and install PlatformIO through the extensions tab). You will need to download two libraries to the PIO project, "Adafruit Unified Sensors" and "DHT Sensor Library"
-
5Run iPlant.py
Run the iPlant.py file, which starts the server (note that you will have to input your own WiFi SSID and password as well as your host IP address).
-
6Reset the ESP32
Once code is done uploading, hit the reset button on the ESP32
-
7Go to localhost:8888
This should pull up the iPlant home website and you will be able to see sensor readings by clicking on the "My Plant" tab
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.