Well in this case @furuskog probably owns some kind of clone of this moisture sensor, it should work fine with a simple analogRead(PIN). If not working, possible issues could be
the sensor is not correctly wired up
the PIN is not the one which is connected to the sensor
the soil humidity is way too low and the sensor is continuously reading the minimal value
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Well in this case @furuskog probably owns some kind of clone of this moisture sensor, it should work fine with a simple
analogRead(PIN)
. If not working, possible issues could bePIN
is not the one which is connected to the sensor