

This circuit is designed to monitor soil moisture levels using multiple sensors and to control a water pump based on the sensor readings. The Arduino UNO serves as the central microcontroller, interfacing with soil moisture sensors, a temperature and humidity sensor (DHT11), an I2C LCD screen for display, and a relay to control the water pump. The system is powered by a 9V battery, and the relay switches the pump on and off as needed.
3.3V connected to VCC of all Soil Moisture Sensors5V connected to VCC of 12V Single Channel Relay, DHT11 Sensor V2, and I2C LCD 16x2 ScreenGND connected to GND of all Soil Moisture Sensors, 12V Single Channel Relay, DHT11 Sensor V2, and I2C LCD 16x2 ScreenA0 connected to SIG of the first Soil Moisture SensorA1 connected to SIG of the second Soil Moisture SensorA2 connected to SIG of the third Soil Moisture SensorA4 (SDA) connected to SDA of I2C LCD 16x2 ScreenA5 (SCL) connected to SCL of I2C LCD 16x2 ScreenD7 connected to DAT of DHT11 Sensor V2D8 connected to IN of 12V Single Channel RelayVCC connected to 3.3V on Arduino UNOGND connected to GND on Arduino UNOSIG connected to A0, A1, and A2 on Arduino UNO (one sensor per pin)- connected to Negative (-) of Mini Diaphragm Water Pump+ connected to COM of 12V Single Channel RelayVCC connected to 5V on Arduino UNOGND connected to GND on Arduino UNOIN connected to D8 on Arduino UNOCOM connected to + of 9V BatteryNO connected to Positive (+) of Mini Diaphragm Water PumpPositive (+) connected to NO of 12V Single Channel RelayNegative (-) connected to - of 9V BatterySDA connected to A4 (SDA) on Arduino UNOSCL connected to A5 (SCL) on Arduino UNOVCC (5V) connected to 5V on Arduino UNOGND connected to GND on Arduino UNODAT connected to D7 on Arduino UNOVCC connected to 5V on Arduino UNOGND connected to GND on Arduino UNOvoid setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Note: The provided code is a template and does not contain any functional code. It needs to be filled in with the logic for reading sensors, controlling the relay, and updating the display.