Component guide · Beginner · 3 min read
NTC Thermistors

How to Read Temperature With an Arduino or ESP32
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
An NTC thermistor is a resistor whose resistance falls as it gets hotter. Put it in a voltage divider with a fixed resistor equal to its nominal value, read the voltage with an ADC, and convert resistance to temperature using the beta equation. A 10 kΩ, B3950 thermistor is the common hobby choice and the one on most 3D printers.
Key specs at a glance
- Nominal resistance
- R25, the resistance at 25 °C, for example 10 kΩ
- Beta value
- Often 3435, 3950 or 4050 K; sets the curve
- Tolerance
- 1 % or 5 %, with the B value tolerance too
- Range
- Typically -40 to +125 °C, higher for glass types
- Output
- Resistance, so you need a divider and ADC
- Typical accuracy
- About ±1 °C with calibration near the mid-range
How an NTC thermistor works
NTC stands for negative temperature coefficient: resistance drops as the temperature rises. The change is steep, so even a small thermistor gives a big signal, but the curve is not a straight line. That is why the reading must be converted with an equation instead of a simple scale.
Common types are epoxy bead (small and fast), glass-encapsulated (high temperature, used in 3D printer hotends) and disc (power inrush limiting). Probes with a stainless sleeve suit liquids and pipes.
Reading it with a voltage divider
Connect the thermistor and a fixed resistor in series across the supply, and read the middle point with the ADC. Use a fixed resistor equal to the thermistor's nominal value so the output is mid-scale near 25 °C.
For an ESP32 or Arduino, use the same reference for the divider and the ADC, and add a 100 nF capacitor across the ADC input to cut noise. See voltage dividers and ADC basics.
Arduino code with the beta equation
This sketch uses a 10 kΩ NTC with B = 3950 K, wired as thermistor to ground and a 10 kΩ resistor to 5 V, with the junction on A0.
const float R_FIXED = 10000.0; // fixed resistor, ohms
const float R0 = 10000.0; // thermistor at 25 C
const float T0 = 298.15; // 25 C in kelvin
const float BETA = 3950.0;
void setup() { Serial.begin(115200); }
void loop() {
int adc = analogRead(A0); // 0..1023
float r = R_FIXED * adc / (1023.0 - adc); // thermistor to ground
float tK = 1.0 / (1.0 / T0 + log(r / R0) / BETA);
Serial.println(tK - 273.15); // degrees C
delay(500);
}Beta equation or Steinhart-Hart
The beta equation is accurate to about a degree near 25 °C and drifts at the ends. For a wider range, use the Steinhart-Hart equation with three coefficients from the datasheet, or a lookup table supplied by the maker. The NTC thermistor calculator converts resistance to temperature for any beta value.
Common sources of error
the current through the thermistor warms it. Keep the divider current low, around 100 µA or less.
average several readings and use a stable reference.
add a small capacitor and use twisted pair.
a B3950 curve applied to a B3435 part gives errors of several degrees.
Try it: Ntc thermistor calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Using a linear scale instead of the beta equation.
- Choosing a fixed resistor far from the thermistor value and losing resolution.
- Using the wrong beta value from a different datasheet.
- Placing the thermistor so it cannot touch the thing it measures.
- Driving too much current through it and self-heating the reading.
Frequently asked questions
What does 10k B3950 mean?
10 kΩ at 25 °C with a beta value of 3950 K.
NTC or PTC?
NTC resistance falls with temperature and is used for sensing. PTC resistance rises and is used for protection such as resettable fuses.
Is a thermistor better than a DS18B20?
A DS18B20 is easier and digital. A thermistor is cheaper, faster and handles higher temperatures in a small probe, but you must convert the value yourself.
Can I use a 3D printer thermistor with Arduino?
Yes. Most use 100 kΩ at 25 °C, so use a 100 kΩ fixed resistor and set R0 to 100000.
Why does my reading jump?
Noise on the ADC input. Add a capacitor at the pin and average several samples.
Parts for this guide
Calculators
Terms in this guide
Projects that use it
Put this into practice: 1 step-by-step build in our project library uses parts from this guide.
Keep learning
Sources
- TE Connectivity thermistor data sheets
- Steinhart and Hart (1968), Deep-Sea Research, thermistor calibration equation
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.




