Project tutorial

Soil Moisture Sensor With LCD Display © GPL3+

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

  • 12,861 views
  • 1 comment
  • 31 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

CPU and RAM Usage Monitor (Windows & Linux)

Project showcase by thesahilsaluja

  • 4,881 views
  • 17 comments
  • 14 respects

TFT Graphing: Live History Graphs

Project tutorial by Andrei Florian

  • 942 views
  • 3 comments
  • 12 respects

AWS - Arduino Weather Station

Project tutorial by GilettaStefano

  • 7,339 views
  • 11 comments
  • 27 respects

Arduino Sunflower: An Electronic Sun-Dancer

Project tutorial by SURYATEJA

  • 3,831 views
  • 2 comments
  • 12 respects

Backpack Alarm

Project tutorial by Tomi Chen

  • 3,182 views
  • 12 comments
  • 31 respects

HUD Alarm Clock

Project in progress by Chukwuemeka Ike

  • 200 views
  • 0 comments
  • 1 respect
Add projectSign up / Login