I have had the same problem...
I used the line
float voltage = sensorVal/1024)*5;
However, the correct calculation is
float voltage = sensorVal/1024**.0**)*5;
I hope this helps some of you!
Johannes
I have had the same problem...
I used the line
float voltage = sensorVal/1024)*5;
However, the correct calculation is
float voltage = sensorVal/1024**.0**)*5;
I hope this helps some of you!
Johannes