Moisture sensor returning 256 or 0 only


Dear all,

When I run the python moisture sensor script, with the sensor attached to A0 on the grovepi board the values returned are 256 or 0 only. The values change even when the sensor stays in the same soil. When put in water the sensor returns mostly 256 but when taken out it takes a long time before returning 0’s.

Does someone have the same problem?



Hi @noamblitz,

Can you run this code and tell us the version of the firmware you are using. If your firmware version is less than 1.2.7 then can you do a firmware update by following the steps 3,4 and 5 given in this guide. Let us know if you still face the problem after the firmware update.