I’m wondering if anyone can give me any pointers for making these values more consistent. At the moment they’re not really usable for my garden watering project.
Attached you can see some pics of how the sensor looks.
Any advice would be much appreciated. It’s also odd, but the script returns a value even if I change the port to use Analogue Port 2 (and nothing is plugged in there). Something feels … wonky.
Hmm. Could you try hooking it up on a shorter distance? Like maybe no extension cords. Having too long of a cable could be an issue. For example hdmi will stop working after a certain distance. Also is the sensor getting super wet? I no this sounds like a stupid question, but the entire sensor isn’t supposed to get wet. Maybe try another port. Also try running the trouble shooting software on Raspbian_For_Robots. You should see an icon on the desktop. Hope this helps.
Can you check out your firmware version if its 1.2.7. You can run this code to find it out and also can you double check you have the sensor connected to the right port.
Yep. On 1.2.7 using the Dexter industries image. I did a full re-install to
avoid a RST issue I kept hitting when using relays on the same device. The
sensor is definitely connected to the right point - A0 at the moment. I do
find it odd that I get a reading from the grove_moisture_sensor.py script
even if the sensor port specified is incorrect. Does anyone else have that
issue?