Circuit
Input voltage (Vin)
V
NTC R25
kΩ
NTC β (B25/T)
R1
kΩ
R
R2
kΩ
R
Input voltage (Vin)
V
R
kΩ
R
NTC R25
kΩ
NTC β (B25/T)
ADC
ADC resolution
Measured voltage
Resolution (ADC counts per degree Celsius)
Source code
The following C code reads a value from the ADC, and converts it to a temperature using the above configuration: