To connect the soil moisture sensor fc 28 in the digital mode we have to use digital output of the sensor and a digital input of arduino.
Arduino soil moisture sensor circuit.
All the 16 pins of the pcf8574 driver module are connected with the lcd pins.
The arduino soil moisture sensor circuit we will build to read the moisture of soil is shown below.
The sensor has 4 terminals for connection vcc for power gnd analog output and digital output.
We can adjust the threshold using the potentiometer in the sensor.
Let s start with the i2c 16 2 lcd.
This soil moisture sensor circuit is pretty simple.
The sensor module contains a potentiometer with it which is used to set the threshold value.
This establishes power for the sensor.
I2c 16 2 lcd 12vdc water pump and capacitive soil moisture sensor interfacing with arduino uno.
Digital mode interfacing arduino and soil moisture sensor to connect the soil moisture sensor fc 28 in the digital mode we will connect the digital output of the sensor to the digital pin of the arduino.
As you can see the circuit diagram is really simple.
While monitoring the sensor gives us true or false condition with respect to measured moisture content in a soil.
We connect vcc to 5v on the arduino board and gnd to gnd on the arduino.
Here we connect 3 3v 5v of external power.
Vcc and ground are how the sensor gets the power it needs to operate.