SOIL MOISTURE SENSOR INTERFACE USING ARDUINO 

 

 

🌱 Soil Moisture Sensor Interface with Arduino – Short Note

Overview:

A Soil Moisture Sensor is used to measure the water content in soil. It helps in determining whether the soil is dry, moist, or wet—making it ideal for smart irrigation systems and agriculture automation.

Working Principle:

  • The sensor has two probes that act like variable resistors.

  • Moisture in soil affects conductivity:

    • Wet soil = lower resistance → higher output

    • Dry soil = higher resistance → lower output

  • Provides:

    • Analog Output (A0) – Shows moisture level

    • Digital Output (D0) – High or Low (based on threshold)

 

🔌Connection:

  • Soil Moisture Sensor (probe + module)

  • Arduino board

  • Jumper wires

 

Sensor PinArduino Pin
VCC5V
GNDGND
A0A0
D0D2 (optional)

🔌 Circuit Diagram:

 

 

📝 Sample Arduino Code:

int sensorPin = 8; // SOIL sensor output pin
int ledPin = 13; //MOTOR to indicate MOISTURE detection

void setup() {
pinMode(sensorPin, INPUT);
pinMode(ledPin, OUTPUT);
Serial.begin(9600);
}

void loop() {
int sensorValue = digitalRead(sensorPin);

if (sensorValue == LOW) {
digitalWrite(ledPin, HIGH);
Serial.println(“Water Not Detected”);
} else {
digitalWrite(ledPin, LOW);
Serial.println(“Water Rain”);
}

delay(1000); // Delay for readability
}

Applications:

  • Smart irrigation

  • Agricultural automation

  • Gardening systems

  • Plant watering alerts

 

📞 For More Details & Project Support:

 

Power Integrated Solutions
Networks | Electronics | Home Automation | Water Automation | IoT | PLC | Embedded | DBMS

📍 Location:
10A/3, Radhakrishnan Colony,
Sasthri Road, Tennur,
Tiruchirappalli, Tamil Nadu – 620017


📍 View on Google Maps

📧 Email:

📱 Phone / WhatsApp:
+91 76393 85448
+91 82488 85959

🌐 Let’s Build the Future with Innovation in Education & Technology!