// original codefloat voltage = (sensorVal/1024.0) * 5.0;// my codefloat voltage = (sensorVal/1023.0) * 5.0;
// original codefloat temperature = (voltage - .5) * 100;// my codefloat temperature = (voltage - .75) * 100 + 25;
The first passage is a little mistake in the conversion of sensorVal into voltage:
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16