Smart irrigation science project

Look in to Award Winning Science projects

1. What is this project?

Have you ever forgotten to water a plant? In this project, you will build a Smart Irrigation System that waters a plant by itself whenever the soil gets too dry.

You do not need to write any code. The soil moisture sensor module has a small built-in “decision maker” that checks whether the soil is wet or dry. It tells a relay (an electrically controlled switch) to turn a water pump ON or OFF.

How it works

  1. Soil moisture sensorchecks the soil
  2. Relayswitches the pump
  3. Water pumpmoves the water
  4. Plantgets watered
  • Dry soil: the sensor signals the relay, the pump turns ON, and water reaches the plant.
  • Wet soil: the sensor signals the relay, the pump turns OFF.

The big idea: Sense, Decide, Act

The sensor senses the soil, the module decides if it is too dry, and the pump acts by giving water.

2. What you need

No.ComponentQty.What it does
1Soil moisture sensor (probe + module)1Checks how wet the soil is
21-channel relay module (5V)1Works as an automatic switch
3Mini DC water pump (5V)1Pumps water
45V DC power supply1Powers the whole project
5Water tube1Carries water to the plant
6Water container1Stores water
7Plant pot with soil1For demonstration
8Jumper wiresAs neededConnections
9Small screwdriver1Adjusting the sensor

Important

Always check the voltage printed on your pump. This guide assumes a 5V pump. A pump with a different voltage needs its own matching power supply.

3. Meet the soil moisture sensor

The sensor has two parts.

A. The probe. This is the fork-shaped part that goes into the soil. Wet soil carries electricity better than dry soil, and the probe uses this to measure moisture.

B. The module. This small circuit board reads the probe and makes the decision. It has these pins and parts:

Pin / partNameWhat it does
VCCPower (+)Connects to 5V positive
GNDGround (−)Connects to 5V negative
DODigital outputGives a HIGH or LOW signal: dry or wet
AOAnalog outputNot used in this project
Blue box with a screwPotentiometerSets how dry the soil must be before the pump starts
LEDsIndicatorsShow power and output status

We use only DO. It sends a simple ON/OFF-style signal that the relay understands.

4. Meet the relay

A relay lets a small signal control a larger device, like our pump. Think of it as a light switch that flips by itself when it receives a signal.

Control side (the signal)

PinConnects to
VCC5V positive
GND5V negative
INSensor DO pin

Switch side (the pump): COM, NO and NC

TerminalFull nameMeaning
COMCommonThe middle terminal of the switch
NONormally OpenNot connected to COM when the relay is resting. Connected when the relay is activated
NCNormally ClosedConnected to COM when the relay is resting. Disconnected when the relay is activated
Relay resting (OFF):        Relay activated (ON):

COM ── X ── NO              COM ────── NO
COM ────── NC               COM ── X ── NC

5. Why do we need a relay?

A sensor can only send a very tiny signal. It cannot supply enough power to run a pump. The relay bridges the gap: the small signal from the sensor flips the switch, and the switch lets the full power flow to the pump.

Sensor (small signal) → Relay (switch) → Pump (big power)

6. Wiring diagram

Circuit diagram of the smart irrigation system showing sensor, relay and pump
Circuit diagram of the Smart Irrigation System

7. Step-by-step assembly

  1. Prepare the plant. Fill a small pot with soil. Push only the probe into the soil. Keep the electronic module out of the soil and away from water.
  2. Connect the probe to the module using the cable that comes with the sensor.
  3. Wire the sensor. Connect VCC to 5V (+) and GND to 5V (−). Leave DO for the next step.
  4. Wire the relay. Connect VCC to 5V (+) and GND to 5V (−). Then connect the sensor’s DO to the relay’s IN.
  5. Prepare the pump. Place the pump in the water container. Attach the tube to the pump outlet and place the other end near the plant. Make sure the tube is not bent or blocked.
  6. Wire the pump through the relay.
    • 5V (+) to COM
    • NO to Pump (+)
    • Pump (−) to 5V (−)
  7. Switch on the power and test.

8. Testing and setting up

Test 1: Does the pump work when the soil is dry?

Power the system with the probe in dry soil or in the air. The pump should turn ON.

Pump is OFF when the soil is dry?

Some relay modules work in reverse (“active LOW”). Switch off the power and move the pump wire from NO to NC. Then try again. The pump should now run in dry soil and stop in wet soil.

Test 2: Does the pump stop when the soil is wet?

Slowly add water to the soil, or dip the probe into a glass of water. The pump should turn OFF.

Setting the sensitivity

The small screw on the blue potentiometer decides how dry the soil should be before the pump starts.

  1. Put the probe in soil that is as moist as you want it to be.
  2. Slowly turn the screw with a small screwdriver.
  3. Stop at the point where the sensor’s output LED changes. That is your “wet enough” level.
  4. Test again with dry and wet soil, and fine-tune if needed.

Every sensor and soil type is slightly different, so always set this using your own sensor instead of copying someone else’s setting.

9. Troubleshooting

ProblemWhat to check
Nothing worksIs the power supply on? Are VCC and GND connected on both the sensor and the relay?
Relay does not clickCheck the relay’s VCC, GND and IN wires. Check that DO is connected to IN.
Relay clicks but the pump does not runCheck COM, NO and the pump wires. Check the pump power supply and test the pump on its own.
Pump runs in wet soil and stops in dry soilThe logic is reversed. Move the pump wire between NO and NC.
Pump is always ON or always OFFAdjust the potentiometer. Check that the probe is properly in the soil and the cable is secure.
Pump keeps switching on and off rapidlyThe soil is near the threshold. Adjust the screw slightly, or let the water soak in before the next reading.
Sensor seems unreliableCheck for loose wires. Old or corroded probes wear out and may need replacing.

10. Safety rules

Please follow these rules

  1. Use only low-voltage DC (5V) power for this project.
  2. Never connect mains electricity (wall socket AC) to the relay.
  3. Keep water away from the sensor module, relay and wires.
  4. Never touch electrical parts with wet hands.
  5. Switch off the power before changing any wiring.
  6. Place the water container where it cannot spill onto the electronics.
  7. Ask a teacher or an adult to check your circuit before switching on.

11. What you will learn

  • Agriculture: how soil moisture affects plants
  • Electronics: sensors, switches and relays
  • Circuits: control signals and power circuits
  • Water saving: giving water only when needed
  • Automation: turning a manual job into an automatic one

12. Conclusion

In this project, you built an automatic watering system using only a sensor, a relay and a pump. The sensor checks the soil, the relay acts as the switch, and the pump waters the plant when needed.

Dry soil: pump ON, plant gets water
Wet soil: pump OFF, water is saved

Sense, Decide, Act. This is the same idea used in real farms, greenhouses and smart homes around the world.

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts