Measure Temperature with an NTC Thermistor: Curves, Self-Heating and Calibration
A thermistor is an appealing temperature sensor: it is small, inexpensive and easy to connect to an analogue input. The difficult part is deciding what its resistance means. Two components marked 10 kΩ can agree at room temperature and disagree significantly when warmed, because their resistance curves differ.
This guide develops a low-voltage measurement method using a small NTC bead. PMD Way’s NTC thermistor collection includes MF58 thermistors in a DO-35 package, with selectable resistance at 25 °C and a listed resistance tolerance of 5%. Those details identify a starting point; they do not specify the complete temperature conversion.
Identify the curve before writing the conversion
NTC means negative temperature coefficient: resistance decreases as temperature increases. For temperature measurement, obtain the nominal resistance at its reference temperature, the resistance tolerance, the resistance-versus-temperature table or coefficients, and the permitted operating environment. A nominal resistance alone is insufficient.
A common approximation uses the beta value, B:
1/T = 1/T₀ + ln(R/R₀)/B
Temperatures in this equation are in kelvins; convert the result to degrees Celsius afterwards. B is associated with a specified pair of temperatures, such as B25/85. It is not a universal constant for every thermistor with the same room-temperature resistance. TDK’s NTC technical guide explains the approximation and why a manufacturer’s curve or more complete model is preferable over a wider range.
The MF58 listing does not identify a beta value. Do not insert a familiar number such as 3950 into software and treat the resulting display as verified temperature. Obtain the matching data, or characterise the sensor over the limited range your experiment actually requires.
Build a divider whose behaviour is easy to check
One useful arrangement puts a fixed resistor between the excitation supply and the measurement node, with the thermistor between that node and ground. For this arrangement:
Vnode = Vsupply × Rntc / (Rfixed + Rntc)
As the thermistor warms, its resistance and the node voltage both fall. Reversing the positions reverses that direction, so keep the drawing and software consistent. Choose an excitation voltage that is compatible with the analogue input under every operating condition.
Consider a hypothetical 10 kΩ thermistor at 25 °C with a 10 kΩ fixed resistor and 3.3 V excitation. The node is 1.65 V and the current is 0.165 mA. If the measured resistance later becomes 5 kΩ, the node is 1.10 V. That observation establishes resistance change; it does not establish a temperature until the correct curve is applied.
Rearranging the divider gives Rntc = Rfixed × Vnode / (Vsupply − Vnode). Use the measured fixed resistance if its tolerance matters. Where the ADC reference and divider excitation share the same supply, a ratio-based conversion can cancel much of the supply variation, provided the ADC and wiring support that arrangement.
Check the analogue input requirements
The input sees a source resistance formed by the two divider elements in parallel. This changes with temperature. Check acquisition time, allowed source impedance and any input filtering against the actual microcontroller or ADC documentation. An apparently stable number can still be biased if its sampling capacitor has not settled.
Measure the environment, not the sensor’s own heating
Current through the thermistor produces heat. In the 3.3 V, 10 kΩ plus 10 kΩ example, the thermistor dissipates approximately 0.272 mW. Whether that is acceptably small depends on the bead’s thermal characteristics and installation. A sensor suspended in still air behaves differently from one attached to a metal block.
Vishay’s NTC application note describes the importance of low measurement power, thermal equilibrium and locating the reference thermometer near the sensor. Its component-specific measurement recommendations are useful background, rather than a qualification of an unidentified MF58 device.
A practical self-heating check is to compare readings after reducing average excitation power while keeping the surroundings stable. If the reported temperature shifts consistently, investigate sensor heating and settling. Switched excitation may help, but allow the electrical circuit to settle before sampling and verify that the switching device does not add a significant voltage error.
Calibrate the complete assembly
Begin with a modest range that you can establish safely and repeatably. A room-temperature monitoring project does not need to be tested at an unknown bead’s maximum temperature. A bare glass bead and exposed leads should not be assumed waterproof, food safe or suitable for immersion simply because they resemble a packaged probe.
- Inspect and identify the sensor. Record its selected resistance, batch and available curve data. Measure it with the circuit unpowered before installation.
- Mount it as intended. Keep its mechanical attachment, insulation and lead routing representative of the finished project.
- Compare at several stable conditions. Place a suitable reference thermometer close to the sensing point. Wait for both readings to settle and record raw ADC values as well as calculated temperatures.
- Fit only what the evidence supports. A single correction can remove an offset at one temperature, but cannot prove the slope is right elsewhere.
- Repeat after reassembly. A change in adhesive, enclosure airflow or lead contact may matter more than another decimal place in software.
For an educational experiment, a table of measured resistance and reference temperature can be more informative than a complicated fitted equation. Interpolate only within the characterised range and retain the original measurements so that the method can be reviewed.
Make wiring faults visible
With the thermistor in the lower leg, a disconnected thermistor tends to pull the node towards the excitation supply through the fixed resistor; a short across the thermistor tends to pull it towards ground. Reserve fault bands near the extremes rather than displaying implausibly hot or cold temperatures without explanation.
Those checks do not detect every failure. A partly damaged lead, conductive contamination or incorrect fixed resistor may produce a plausible reading. Compare changes with physical expectations, and show when a reading is stale. Temperature control that could create a hazard needs an independently suitable protective arrangement, not merely this measurement demonstration.
What belongs in the project record?
Keep the resistor value, divider orientation, excitation method, ADC settings, thermistor curve, calibration points and mounting photograph together. State the temperature interval actually checked and the remaining uncertainty. A useful sensor is one whose limitations are known: a repeatable indication across a verified range is more valuable than an impressive display based on an assumed beta value.