Soil Moisture Sensor with Arduino

After completing this tutorial you will be able to:

Soil Moisture Sensor can be used with Arduino to make awesome Arduino projects like Automatic Watering to plants, water level indicator, rain alarm and much more.

This video will help you to connect soil moisture sensor to Arduino Uno. Write a program to take input from soil moisture sensor and do some task based on the data received from soil moisture sensor.

int led = 13;
int sensor = 8;
int val;

void setup() {

void loop() {
   val = digitalRead(8);
  if(val ==LOW)

Download “Soil moisture sensor with Ardunio Source code” – Downloaded 647 times – 280 B

Required Material to make it yourself

Vivek Verma

Pursuing Diploma in Electronics from RBS govt. polytechnic college, Bichpuri, Agra. He loves to play with electronics equipment. He makes electronics project for Learn By Watch and helps other electronics students to build electronics projects for science fairs and exhibition.

This Post Has One Comment

  1. Sir,I want to do this using a Arduino Nano,What is the circuit diagram and also the code?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close Menu


Close Panel
Skip to toolbar