How Temperature Sensors Work: Thermistors, RTDs and More
Temperature is one of the most measured quantities in electronics. It shows up in thermostats, battery packs, engine controllers, kitchen appliances and industrial furnaces. Yet a circuit cannot read heat directly. It can only read voltage, current or resistance, so every temperature sensor relies on some physical property that changes predictably with temperature.
This guide walks through the four main families: thermistors, resistance temperature detectors (RTDs), thermocouples and integrated digital sensors. Each uses a different effect, and each fits different jobs.
Thermistors
A thermistor is a resistor made from a ceramic or polymer semiconductor material whose resistance changes strongly with temperature. The name comes from "thermal resistor."
There are two types. An NTC (negative temperature coefficient) thermistor drops in resistance as it warms. A PTC (positive temperature coefficient) thermistor rises in resistance. NTC types are the usual choice for measurement, while PTC types are often used as resettable fuses and self-limiting heaters.
The relationship is not a straight line. Designers describe it with the beta equation for a rough fit, or the more accurate Steinhart-Hart equation, which uses three fitted coefficients. In firmware you can also use a lookup table.
To read a thermistor, build a voltage divider with a fixed resistor and measure the midpoint with an ADC. Strengths include high sensitivity, small size, fast response and low cost. Weaknesses include the nonlinear curve, a limited useful range and self-heating if you push too much current through them.
RTDs
An RTD relies on the fact that pure metals increase in resistance in a nearly linear way as they get hotter. Platinum is the standard material because it is stable and repeatable. A common type is the Pt100, which has a resistance of 100 ohms at 0 degrees Celsius. A Pt1000 has 1,000 ohms at the same point.
Because the change in resistance is small, RTD circuits need care. Lead wire resistance can add error, so precision setups use three-wire or four-wire connections. A four-wire arrangement sends a known current through one pair and measures the voltage through another, which cancels the wire resistance almost completely.
RTDs are accurate, stable over long periods and cover a wide range. They respond more slowly than thermistors and cost more than basic parts, so they appear in industrial and laboratory measurement more than in consumer gadgets.
Thermocouples
A thermocouple joins two different metals at one point. When that junction is heated relative to the other end, a small voltage appears. This is the Seebeck effect. The voltage is only millivolts and depends on the temperature difference between the hot junction and the connection point, called the cold junction.
That second detail matters. To get an absolute temperature you must measure the cold junction temperature too, usually with a small sensor, and add it in. This is called cold junction compensation. Many thermocouple interface chips do it automatically.
Thermocouples are rugged, need no excitation power, respond quickly and cover extreme ranges, far above what thermistors and RTDs survive. Accuracy is lower, and the tiny signal needs a good amplifier and careful wiring.
Types are named by letters, such as K, J and T, each defined by its metal pair and suited to different ranges.
Integrated Digital Sensors
Silicon itself is temperature sensitive. A semiconductor junction has a forward voltage that falls in a predictable way as the temperature rises. Integrated temperature sensors use this effect, then add an ADC and a digital interface on the same chip.
The result is a part that outputs a finished temperature value over I2C, SPI or a one-wire bus, or an analog voltage proportional to temperature. There is no curve fitting for you to do, and calibration is done at the factory. The trade-offs are a limited temperature range and a larger package than a bare thermistor.
Choosing the Right Type
- Thermistor: best for moderate ranges, battery packs, ambient sensing and cost sensitive designs.
- RTD: best when you need stable, accurate, repeatable readings over time.
- Thermocouple: best for very hot or very cold environments, such as ovens, exhausts and furnaces.
- Digital IC: best for board temperature, quick prototyping and simple firmware.
Getting Good Readings
Whatever sensor you pick, a few practices matter.
- Make sure the sensor is in good thermal contact with what you want to measure, not just the surrounding air.
- Keep the sensor away from heat sources on the board such as regulators and processors.
- Limit excitation current to avoid self-heating.
- Filter or average readings, since temperature changes slowly and noise does not.
- Calibrate against a trusted reference if accuracy matters.
Frequently Asked Questions
Which temperature sensor is the most accurate?
A properly wired platinum RTD is generally the most accurate and stable of the common types. Accuracy still depends on the measurement electronics, the wiring method and calibration, so a well-built thermistor circuit can beat a poorly built RTD one.
Why do thermocouples need cold junction compensation?
A thermocouple outputs a voltage based on the temperature difference between its two ends. If the cold end is at room temperature rather than zero degrees, the reading is offset. Measuring that cold end temperature and adding it back gives the true absolute temperature.
What is self-heating in a thermistor?
Current flowing through the thermistor produces heat in the part itself. That heat raises its temperature above the surroundings and makes the reading too high. Using a small excitation current, or powering the divider only briefly during each measurement, reduces the effect.