I wanted to read data from Round Force Sensor FSR402. Unfortunately on Grove wikipage there’s no sample code for Raspberry Pi & GrovePi+ but I found other analog sensor as a reference: Grove Gas Sensor MQ2. At the end of the day I created code like this:
import grovepi sensor = 0 grovepi.pinMode(sensor, "INPUT") print("AAA") value = grovepi.analogRead(0) print("BBB")
The output of this code is:
Probably analogRead is wating for a data and cannot get them. I plugged sensor into the A0 port. Could you please help me to figure this out?