Objective:

In this project, we will use Arduino to get data from soil moisture sensor and
display the moisture to 16×2 LCD.

Parts and Accessories:
Arduino UNO board x 1 pc
Soil moisture sensor module and probe x 1 set
I2C 16×2 LCD screen x 1
Jumper wires

Circuit Connection Map

Arduino UNO Soil Sensor Module
D3 DO
A0 AO
5V VCC
GND GND

 

Arduino UNO I2C 1602 LCD
A5(SCL) SCL
A4(SDA) SDA
5V VCC
GND GND

You can also download fritzing format circuit graph from
http://osoyoo.com/driver/SoilSensor_i2C_LCD.fzz

 

Software Installation:
Step 1: If you have installed Arduino IDE , please skip Step 1.
Otherwise, please read following article and install
the Arduino IDE (programming tool):
http://osoyoo.com/2017/05/08/download-and-install-arduino-ide/

Step 2: If you have installed LiquidCrystal_I2C library in your
Arduino IDE, please skip Step 2.

Otherwise please install LiquidCrystal_I2C library and scan 1602 LCD I2C address

Please read following tutorial to complete above task:
http://osoyoo.com/2017/07/09/arduino-lesson-i2c-lcd1602-display

Step 3: Download our source code for this project from following
link:

 http://osoyoo.com/driver/SoilSensor_i2C_LCD.ino

Then copy above code into Arduino IDE and load the sketch into Arduino firmware

Result:

Your LCD will show words like “Soil Moist.:32% “, once you put the sensor probe
into some wet soil, moisture value will increase.