Arduino Projects

Soil Moisture Sensor with Arduino

soil moisture sensor interfacing with arduino


In This Tutorial, I will show how you interface the Moisture Sensor With Arduino Nano Microcontroller And How You Write the Code.

you just connected to the soil moisture sensor and it can measure moisture or water level content in it. it gives an Analog value when the moisture level is high and is moisture is low the value is low.

Soil Moisture Sensor Has 3 Pin VCC, GND And Analog Pin 

Soil Moisture Sensor

Soil Moisture Sensor is measuring the soil and also the water level. in the sense includes a potentiometer to set the desired moisture threshold. when the moisture in the soil is less than the threshold value the output side is LOW And if the Soil is More Then the threshold Value The output Side Is High.


  • Operating voltage:- 3.3v To 5v
  • Dual Mode Output, Analog Output
  • Having LM939 Comparator Ic 
  • Cable Length: Approx 21cm
  • Vcc:- 5v
  • GND:- GND
  • D0:- Digital output Interface
  • A0:- Analog Output Interface

Soil Moisture Sensor Pinout

Soild Moiture Sensor Pinout e1671686493699



Wiring Diagram Soil Moisture Sensor With Arduino

soilsensor lcd circuit diagram


Testing Of Soil Moisture Sensor 

Soil Moisture Sensor Reading In Serial Monitor

Screenshot 2022 12 18 at 10.48.48 PM

Screenshot 2022 12 18 at 10.48.56 PM


Soil Moisture Sensor Reading In LCD Display

Screenshot 2022 12 18 at 10.52.00 PM

Screenshot 2022 12 18 at 10.51.21 PM

Screenshot 2022 12 18 at 10.52.43 PM


Automatic Plant Watering System

Circuit diagrams





If You are Interested In More Projects Then Plz Check Out 


Hi, Prateek Here I’m interested in Electronics That's why I Make Soo Many Projects, I’m currently Pursuing M Tech.. if you Relay Like To My Blog Plz Comment Below...Thanks To All Electronics Lover...❤️

Leave a Reply

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

Back to top button

Adblock Detected

Please consider supporting us by disabling your ad blocker