Skip to content

Integration YL 69

Rob Cermak edited this page May 17, 2017 · 2 revisions

Integration of the YL-69 moisture sensor

Arduino

Hookup (temporary)

There is very good hookup guide for this sensor.

There is a digital output that is on/off. The threshold is configured by the onboard potentiometer. We use the analog input for the greenhouse project.

Arduino Mega 2560
A15: A0 of moisture sensor
GND: GND of moisture sensor
5V : VCC of moisture sensor 

Code

Output

TL-69 Analog Soil Mosture Reading Demo
Soil moisture raw value: 1023
Soil moisture raw value: 1007
Soil moisture raw value: 990
Soil moisture raw value: 1023

Notes

This sensor has two leds on the board. One led is power. One led turns on when the threshold is reached. The sensor values could be calibrated against another sensor such as the SHT10 temperature/moisture sensor. An interesting research paper made a stab at calibration of values. Readings may vary by soil type.