Project tutorial

Soil Moisture Sensor With LCD Display © GPL3+

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

  • 4,695 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.

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

Infrared Replicator

Project tutorial by Gustavo Gonnet

  • 353 views
  • 2 comments
  • 11 respects

Development Board for AtTiny MCU

by Vincenzo G.

  • 266 views
  • 0 comments
  • 8 respects

Version 2.0 Advanced Attendance System (Without Ethernet)

Project tutorial by GadgetProgrammers

  • 3,519 views
  • 6 comments
  • 48 respects

The Magnetic Field and RGB Tester

Project tutorial by Kutluhan Aktar

  • 1,293 views
  • 0 comments
  • 6 respects

Control LED Using Your Voice Command

by IoTBoys

  • 1,462 views
  • 1 comment
  • 13 respects

Ultrasonic Security System

Project tutorial by Krepak

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