Hi,
I have the following bit of code:
high EnableSensor
pause 60
setfreq M8
pause 400
readadc10 C.0, Value
pause 200
setfreq K250
low EnableSensor
sertxd ("Value: ",#Value,cr,lf)
and I use it to read Value from a DFROBOT capacitive soil moisture sensor.
I run it 10 times and get (average) Value=281. I actually had a situation where I got Value=281 the first time and Value=2 the rest of the times, but that has disappeared without me doing anything to achieve that(!)
The program then proceeds to run it again at 8 minutes interval with the same physical setup (dont touch anything) and each time I get Value=2.
Voltage is 4.5 V.
Does anyone have an idea?
Best regards
torben
PS. The DFROBOT capacitive soil moisture sensor has 3 connections: GND, Enable sensor and analogue value.
I have the following bit of code:
high EnableSensor
pause 60
setfreq M8
pause 400
readadc10 C.0, Value
pause 200
setfreq K250
low EnableSensor
sertxd ("Value: ",#Value,cr,lf)
and I use it to read Value from a DFROBOT capacitive soil moisture sensor.
I run it 10 times and get (average) Value=281. I actually had a situation where I got Value=281 the first time and Value=2 the rest of the times, but that has disappeared without me doing anything to achieve that(!)
The program then proceeds to run it again at 8 minutes interval with the same physical setup (dont touch anything) and each time I get Value=2.
Voltage is 4.5 V.
Does anyone have an idea?
Best regards
torben
PS. The DFROBOT capacitive soil moisture sensor has 3 connections: GND, Enable sensor and analogue value.