Connecting peripherals and onboarding the ESP32
Connecting the Soil Moisture Sensor:
Connect the 3.3V pin of the ESP32 to the VCC pin of the soil moisture sensor.
Connect the GND pin of the ESP32 to the GND pin of the soil moisture sensor.
Connect the D34 pin of the ESP32 to the S (signal) pin of the soil moisture sensor.
Attach the soil moisture sensor probe to the sensor.
Connecting the Water Pump via a 5V Relay:
Connect the VIN pin of the ESP32 to the VCC pin of the relay.
Connect the GND pin of the ESP32 to the GND pin of the relay.
Connect the D26 pin of the ESP32 to the LV1 (Low Voltage) pin of the Logic Level Controller.
Connect the HV1 (High Voltage) pin of the Logic Level Controller to the IN pin of the relay.
Connect the 3.3V pin of the ESP32 to the LV pin of the Logic Level Controller.
Connect the HV pin of the Logic Level Controller to the VCC pin of the relay.
Ensure the GND pin of the ESP32 is connected to the GND pin of the Logic Level Controller, and the GND pin of the Logic Level Controller is connected to the GND pin of the relay.
Connect the Water Pump to the Relay
With the setup complete, you can now create a device in the Zoho IOT application for the ESP32.
Onboarding the ESP32
After the program from the Zoho IOT Arduino SDK is uploaded to the ESP32 and the sensors, relays, pump, probe and logic controller are connected to the ESP32, power it on. The ESP32 to will connect to the internet and push the data to the Zoho IOT application.