Project tutorial
Soil Moisture Sensor With LCD Display

Soil Moisture Sensor With LCD Display © GPL3+

Soil moisture sensor which gives you LCD display of percentage of moisture.

  • 27,641 views
  • 8 comments
  • 43 respects

Components and supplies

Necessary tools and machines

09507 01
Soldering iron (generic)

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.

Connecting LCD

  • Connect LCD GND to GND.
  • Connect LCD SCL to Arduino A5.
  • Connect LCD SDA to Arduino A4.
  • LCD VCC to Arduino 5V.

Code

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

captures_4QKMBTVbO0.JPG
Captures 4qkmbtvbo0

Comments

Similar projects you might like

The Quantified Cactus: An Easy Plant Soil Moisture Sensor

Project tutorial by Jen Looper

  • 7,697 views
  • 2 comments
  • 26 respects

Ultrasonic Sensor with Alarm, LCD and Temperature

Project tutorial by MichDragstar

  • 4,661 views
  • 7 comments
  • 19 respects

Ultrasonic Sensor with LCD Display Using 433MHz

Project tutorial by mcharrison500

  • 2,827 views
  • 0 comments
  • 15 respects

Portable Arduino Temp/Humidity Sensor with LCD

Project tutorial by ThothLoki

  • 153,297 views
  • 115 comments
  • 185 respects

Thirsty Flamingo Soil Moisture Sensor

Project tutorial by circuito.io team

  • 2,664 views
  • 1 comment
  • 7 respects

DHT11 Humidity + Temperature Sensor with 16x2 LCD display

Project showcase by onatto22

  • 9,056 views
  • 1 comment
  • 17 respects
Add projectSign up / Login