Project tutorial

Soil Moisture Sensor With LCD Display © GPL3+

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

  • 2,361 views
  • 0 comments
  • 17 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.

Schematics

captures_4QKMBTVbO0.JPG
Captures 4qkmbtvbo0

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);
}

Comments

Similar projects you might like

Vintage Bench-Top DC Hybrid Voltmeter using Arduino

Project tutorial by Shahariar

  • 235 views
  • 0 comments
  • 6 respects

Automation of Railway Models Part 1 - Sensors

Project tutorial by Steve_Massikker

  • 741 views
  • 3 comments
  • 13 respects

Binary Clock with Arduino and Plywood

Project tutorial by Kalle Wallin

  • 193 views
  • 1 comment
  • 3 respects

LittleBot Simple Arduino Robot

Project showcase by Slant Concepts

  • 497 views
  • 0 comments
  • 7 respects

Arduino Sunflower

Project tutorial by Rick_Findus

  • 1,380 views
  • 0 comments
  • 8 respects
Add projectSign up / Login