Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4821

Automation, sensing and robotics • Re: Problems with moisture sensor

$
0
0
Using micropython, there was a problem using the code

moist = machine.ADC(26)

try using this one instead

adc = machine.ADC(machine.Pin(26))

I remember a thread where the first line somehow worked, but the io line pulldown was not switched off.
Measure the voltage on the analog output of the sensor with your multimeter and compare with the ADC results.

Statistics: Posted by ghp — Wed Apr 10, 2024 4:00 am



Viewing all articles
Browse latest Browse all 4821

Trending Articles