Hi Steve
-
For the Grove A0 port, you shall be able to read the data well. I use the analog sensor and got the stable data. So it will be more related with your cable connection.
-
For D4/D6/D8, you have to use below.
D4: int sensorPin = A6;
D6: int sensorPin = A7;
D8: int sensorPin = A8;
[email protected]