Circuits / Sensors
Arduino UNO: NTC thermistor thermometer
The thermistor and a resistor make a divider; the ADC turns its voltage into a number, and the B equation turns the resistance into degrees

Tap a part to see its voltages and currents. It is a model, not a measurement.
What do you need?
- Development board Arduino UNOAliExpress Amazon
- NTC thermistor 10 kΩAliExpress Amazon
- Resistor 10 kΩAliExpress Amazon
- Jumper wires × 2AliExpress Amazon
- BreadboardAliExpress Amazon
The AliExpress links are affiliate links: if you buy through them ohmio.dev gets a commission, at no extra cost to you. Affiliate links
This page is a guide: the numbers come from a simulation, and real parts vary. Check your parts before you power the circuit. Safety and responsibility
How does an Arduino turn a thermistor into degrees?
A thermistor changes its resistance with temperature, but the Arduino can only read voltage. So TH1 (an NTC, 10 kΩ at 25 °C) and R1 (10 kΩ) form a divider whose middle goes to A0. At 25 °C the divider gives 2.49 V and analogRead returns 512. At −20 °C it gives 0.43 V (reading 89) and at 100 °C 4.66 V (956). The program first recovers the thermistor's resistance: r = 10000 × (1023 − reading) / reading. Then it applies the B equation, 1/T = 1/298.15 + ln(r / 10000) / 3950, with T in kelvin and 3950 as the thermistor's B constant. The serial monitor shows T=25.04 at 25 °C and T=99.83 at 100 °C. With 5 % resistors the result shifts by about 1 °C at 25 °C. The program assumes 10 kΩ for both parts, so change its constants if you change them.
Values from the Protoboard ISO simulation: a model, not a bench measurement.
Hear about the next circuit
One email when a new circuit is out, about twice a month. Nothing else.