Smart Irrigation
Smart Irrigation
jumper wires.
Relay module
Breadboard
12v/5v adapter
The next step is to connect the soil moisture sensor with the Arduino.
Connect the VCC and gnd of the sensor to the 5volt and ground pin of
the Arduino. The analogue output of the sensor connects to any
analogue pin of the Arduino, here I’ve connected it to pin A0 (according
to our program).
Finally, connect the pump to the relay module. A relay module has 3
connection points which are common, normally closed, and normally
open. We have to connect the pump positive to common and connect
the normally open pin to the positive of the battery. You have to select
the battery as per your pump. The next step is to connect the ground
of the pump to the ground of the Arduino and finally, connect the small
hose to the water pump.
Now connect the battery to the circuit and if the pump starts working
then your circuit is okay. Now let's upload code to Arduino.
Circuit Diagram