I've bought this moisture sensor that I'm trying to use with raspberry pi pico:
https://www.amazon.de/dp/B0B2DY4CZS?ref ... tails&th=1
I'm powering it with pin 36 and 38 and it lights up and seem to be working. I've connected the ao pin to pin 26 on the raspberry and I try to read the analogue voltage with this code:
The reading gives me a value of about 4500 no matter if I use it in dry or moisty soil so I suspect my code isnt totally correct. Could someone give me some advice?
https://www.amazon.de/dp/B0B2DY4CZS?ref ... tails&th=1
I'm powering it with pin 36 and 38 and it lights up and seem to be working. I've connected the ao pin to pin 26 on the raspberry and I try to read the analogue voltage with this code:
Code:
from machine import ADCimport timemoist = ADC(26)while True: print(moist.read_u16()) time.sleep(1)Statistics: Posted by Jasper Lamar Crabb — Tue Apr 09, 2024 8:07 pm — Replies 0 — Views 23