
For instance, an analog reading of 77, when converted to digital through the Analog-to-Digital Converter (ADC), corresponds to 37 degrees Celsius. This can be calculated as follows:
Let's see: ADC Value * 5 / 1024 * 100 = Temperature in Degrees Celsius.
Thus: 77 * 5 / 1024 * 100 = 37.59�C
Calibration
It is likely that you will need to calibrate your system to find a more precise value. It's probable that ADC converters from different series of microcontrollers will produce varying results for the same output from the LM35 or TMP36. Additionally, the LM35 or TMP36 themselves may produce significant variations in response to the monitored body temperature.
Documentation:
#pic12f675 #microchip #lm35 #tmp36