Soil Moisture Detection Control Module (FC-28) [S022]
https://www.youtube.com/watch?v=2tKvzzbl2gA
*GitHub : https://github.com/rdiot/rdiot-s022.git
* Specs
1 This is a summary of the moisture sensor can be used to detect soil moisture, soil water when the module outputs a high level, whereas the output low. Using this sensor make an automatic watering system, so that your garden plants need people to manage.
2 adjustable sensitivity (shown in blue digital potentiometer adjustment)
4 Operating Voltage 3.3V-5V
5 module dual output mode, the digital output is simple, analog output is more accurate.
6 with fixed bolt hole for easy installation
7 small PCB board size: 3cm * 1.6cm
Small plate interface specification (4-wire)
1 VCC 3.3V-5V external
2 GND GND External
3 DO small board digital output interface (0 and 1)
4 AO small plates analog output interface
* Content
- Connect
A0 - A0
D0 - X
GND - GND
VCC - 5V
- Key Code
int sensorValue = analogRead(pin);
sensorValue = constrain(sensorValue, 485, 1023);
int soil = map(sensorValue, 485, 1023, 100, 0);
lcd.print("sensorValue=" + (String)sensorValue);