Project tutorial

Soil Moisture Sensor With LCD Display © GPL3+

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

  • 7,213 views
  • 0 comments
  • 24 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

4-Stroke Digital Clock with Arduino

Project tutorial by LAGSILVA

  • 5,663 views
  • 8 comments
  • 28 respects

PhoneLocator

Project tutorial by Andrei Florian

  • 2,230 views
  • 0 comments
  • 9 respects

Low Cost Accurate 3D Positioning

Project tutorial by Sumit Aich

  • 3,544 views
  • 5 comments
  • 7 respects

DIY $0 Water Touchpad

Project tutorial by Sumit Aich

  • 1,912 views
  • 4 comments
  • 14 respects
Add projectSign up / Login