Smart Garden: Phase 1 Wiring

Follow these steps to wire your Arduino Uno, sensors, and pump using a breadboard.

1. Power the Breadboard Rails

1
Connect Arduino 5V to the Red (+) Rail on the breadboard.
2
Connect Arduino GND to the Blue/Black (-) Rail on the breadboard.

This allows all sensors to draw power from these common lines.

2. Connect the Sensors

Component VCC / (+) GND / (-) Signal / Data
DHT11 (+) Rail (-) Rail Digital Pin 2
Relay (IN) (+) Rail (-) Rail Digital Pin 3
Soil Moisture (+) Rail (-) Rail Analog Pin A0
Light Sensor (+) Rail (-) Rail Analog Pin A1

3. Ultrasonic Water Level (HC-SR04)

1
VCC to (+) Rail | GND to (-) Rail.
2
Trig Pin to Digital Pin 4.
3
Echo Pin to Digital Pin 5.

4. The Pump & Relay (High Power Side)

Safety First: The relay acts as a switch. Do not connect the pump directly to the Arduino pins.
1
Connect the Pump's Negative (-) Wire directly to the GND (-) Rail.
2
Connect the Pump's Positive (+) Wire to the NO (Normally Open) terminal of the Relay.
3
Connect a wire from the 5V (+) Rail to the COM (Common) terminal of the Relay.

When Digital Pin 3 goes LOW, the Relay closes the circuit and the pump turns on.

5. Final Checklist

Generated by Gemini CLI for Surendran's Smart Garden Project