AUTOMATIC SOIL MOISTURE PUMP SYSTEM

by DESHBOT in Circuits > Arduino

18 Views, 0 Favorites, 0 Comments

AUTOMATIC SOIL MOISTURE PUMP SYSTEM

WhatsApp Image 2026-09-17 at 2.07.00 PM.jpeg

The Automatic Soil Moisture Pump System is an Arduino Nano based project that automatically controls a water pump according to the moisture level of the soil.

A soil moisture sensor is used to detect whether the soil is dry or wet. When the soil becomes dry, the Arduino turns ON the water pump. When the soil is wet, the pump is turned OFF.

This system can be used for automatic plant watering and basic smart irrigation applications.




Supplies

des 1.jpeg
WhatsApp Image 2026-08-31 at 2.59.19 PM.jpeg
WhatsApp Image 2026-08-20 at 2.37.27 PM.jpeg
uno.jpeg

Deshbot shield

nano

water pump

soil sensor

Working Principle

WhatsApp Image 2026-09-17 at 2.07.12 PM.jpeg

The soil moisture sensor provides two types of readings:

  1. Analog output (AO) → provides a moisture reading through A0.
  2. Digital output (DO) → provides a HIGH or LOW signal depending on the sensor's moisture threshold.

The Arduino reads both signals.

The analog moisture value is displayed in the Serial Monitor:

Moisture: 650 D11: 1

When the digital output is HIGH, the program considers the soil to be dry and turns the pump ON.

When the digital output is LOW, the program considers the soil to be wet and turns the pump OFF.

Pump Operation

Dry Soil

When:

D11 = HIGH

The Arduino activates the pump driver:

IN1 = HIGH
IN2 = LOW

The pump starts running and supplies water to the plant.


Wet Soil

When:

D11 = LOW

The Arduino turns the pump OFF:

IN1 = LOW
IN2 = LOW

The pump stops supplying water.


Analog Moisture Reading

The sensor's analog output is connected to A0.

The Arduino reads it using:

int moisture = analogRead(SOIL_A);

The Arduino Nano's ADC provides a value from approximately:

0 to 1023

The exact value corresponding to wet or dry soil depends on the particular sensor and its calibration.

Downloads

Conclusion


The Automatic Soil Moisture Pump System demonstrates how an Arduino Nano can monitor soil conditions and automatically control a water pump.

When the soil sensor detects dry soil, the Arduino activates the pump. When the soil becomes wet, the pump is switched OFF.

The project combines soil moisture sensing, analog and digital input, automatic control, and motor/pump interfacing into a practical smart irrigation system.