Real-Time Soil Moisture Monitoring with LCD Display – Arduino DIY Kit
Components and supplies
![]() |
| × | 1 | |||
![]() |
| × | 1 | |||
![]() |
| × | 1 | |||
![]() |
| × | 1 |
Necessary tools and machines
![]() |
|
Apps and online services
![]() |
| |||
![]() |
|
About this project
The project tells you about interfacing soil moisture sensor and LCD to give display. I forget everyday to water my plant and my grandmother used to recall me to water. So now I think I should build a project to show moisture so I remember that I have built project lets check out the moisture. So I quickly opened Circuito.io and added inputs and outputs and got schematic.
Connecting Moisture Sensor
- Connect Soil Moisture 0 to GND.
- Connect Soil Moisture Sig to Arduino A3.
- Connect Soil Moisture Vin to Arduino 5v.

- Connect LCD GND to GND.
- Connect LCD SCL to Arduino A5.
- Connect LCD SDA to Arduino A4.
- LCD VCC to Arduino 5V.
Code
- Untitled file
Untitled fileC/C++
#include <LiquidCrystal.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(5, 4);
// These constants won't change. They're used to give names
// to the pins used:
const int analogInPin = A5; // Analog input pin that the Sensor is attached to
int sensorValue = 0; // value read from the Soil Moisture
void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
delay(100);
}
void loop() {
lcd.clear();
lcd.print("Soil Moisture:");// print the results to the LCD Display:
sensorValue = analogRead(analogInPin);// read the analog in value:
lcd.setCursor(0, 1);
lcd.print(sensorValue);
// wait 300 milliseconds before the next loop for the
//analog-to-digital converter to settle after the last reading:
delay(300);
}
Schematics

Manufacturing process
- Build a Low‑Cost Raspberry Pi Soil Moisture Sensor for Smart Irrigation
- DHT11 Temperature & Humidity Sensor Project with LED Indicators and Piezo Speaker
- Build a Simple Obstacle Sensor with Arduino – Easy IR LED & Photodiode Tutorial
- Interactive LED Matrix Door Display with PIR Motion Sensor – Arduino Holiday Greeting
- DIY Arduino Nano Oscilloscope (10 Hz–50 kHz) with 128×64 LCD
- Step-by-Step Guide: Connecting YL-39/YL-69 Soil Moisture Sensor to Arduino UNO
- Build an IR Sensor Project with Arduino UNO – Simple Guide
- Android Motion‑Detection Camera Controlled by Arduino MCU
- Portable Arduino-Based Temperature & Humidity Monitor with 16x2 LCD Display
- Build an Interactive LCD Game with Arduino UNO






