TMP36 only 4.8 volts in USB

Dear All

My USB only gives 4.90 volts. Am I using 4.80 or 5.0 to convert sensorvalue to volt?

Ie. 4.8xsensorvalue/1024


Use an external power supply (7.5V are best, 9V are OK too). If the voltage of the external power supply is higher than 6.6V that power is used and the USB power is disconnected. This should give a more stable result and the voltage should be closer to 5V.

Best : use internal reference -> see analogReference() The TEMP36 give 10mV/°C so 100°C -> 1V and internal reférence is 1,25V.