Engineering & Inventions · Electronics & communication
How a sensor turns temperature into a number
Follow a temperature reading from a bead whose resistance changes with heat to the digits on a display, and find out what those digits can and can't promise.

What you will learn
- Explain how a thermistor links temperature to electrical resistance.
- Distinguish a raw electrical reading from an interpreted temperature.
- Identify what a proxy measurement picks up besides the quantity you care about.
- Explain digital resolution using a 10-bit converter as the example.
- Distinguish finer resolution from lower measurement error.
- Turn a converter's resolution in volts into resolution in degrees across the range.
Lesson 1 of 4 · 5 min
What does a thermometer actually measure?
A digital thermometer can't read temperature directly. One common kind has a thermistor in its tip, a bead of ceramic that can be less than a millimeter across. What the instrument measures is how well that bead conducts electricity.
Temperature changes the bead's electrical resistance. The instrument measures the resistance and uses a known relationship between the two to work out how warm the bead is. Every degree on the display is an inference.
Resistance is how strongly a component opposes electric current. A thermistor is made so that its resistance changes a lot with temperature. The most common kind loses resistance as it warms, so more current flows through a warm bead than a cold one.
The change is large. Between minus 50 and 90 degrees Celsius, a thermistor's resistance changes more than 300-fold, about 4% for every degree. A few special types go the other way and gain resistance as they warm.
This is measuring through a proxy. You can't read the quantity you care about, so you read something that responds to it.
A proxy is only useful once the link has been mapped out. Knowing that resistance falls as temperature rises isn't enough. You need to know how much it falls at each temperature, and over what range the mapping holds.
A circuit turns the bead's resistance into a voltage that rises and falls with it. A chip called an analog-to-digital converter then turns that voltage into a whole number.
That number isn't a temperature yet. It's an electrical reading on the converter's own scale. To get degrees, software has to apply two relationships in turn, the circuit's and then the sensor's.
Say the converter hands you a raw reading of 512. It doesn't mean 512 degrees. It doesn't even mean a particular voltage until you know the converter's scale.
The same stored number can stand for different physical values in different instruments. Units and a defined conversion are what give a reading its meaning.
The conversion isn't a straight line. A thermistor is nonlinear, which means equal steps in temperature don't produce equal steps in resistance. Software that assumed a straight line would be right at some temperatures and wrong at others.
The mapping also has a working range. Thermistors perform best from about minus 50 to 100 degrees Celsius. Outside the range where the mapping was made, the conversion can't be trusted.
Try to recallWhy can't a raw digital reading from a temperature circuit be treated directly as degrees?
It represents an electrical signal on a defined converter scale. You need the circuit and sensor relationships to translate that signal into temperature.
Measuring through a proxy has a catch. Anything else that changes the proxy ends up in the reading too. If you infer temperature from resistance, every other resistance in the path gets counted as temperature. A long cable adds some. So does a loose connection.
None of it announces itself. It just becomes part of the number.
The biggest effect of this kind isn't a fault at all. A thermistor reports its own temperature. It tells you about the soup or the room only when the two are in good contact and have had time to reach the same temperature.
Most digital probes settle about ten times faster than mercury thermometers, but none settles instantly. Plunge a cool probe into hot liquid and read it at once, and the instrument is honest about the bead and wrong about the liquid.
That's no reason to distrust a thermometer. It leaves you with two questions to ask of any reading. What else lies in the path between the thing and the number? And has the sensor reached the temperature of the thing it's measuring?
Until the answer to the second is yes, the number describes the sensor.
Lessons in this topic
What does a thermometer actually measure?
A digital thermometer never senses temperature directly. Follow a reading from a bead whose resistance changes with heat to a number on a screen, and see what else gets into that number.
Can more digits make a sensor more truthful?
A converter chops a smooth voltage into steps. See how many steps a 10-bit converter has, what one step is worth in degrees, and why finer steps don't make a reading more accurate.
Why is calibration more than checking one number?
Two thermometers that agree in a warm room can disagree in a freezer. See what a calibration covers, how a sensor drifts or heats itself, and how to read a calibration result for its gaps.
Choose the sensor for the job
Compare thermistors, platinum thermometers and thermocouples by range and sensitivity, then separate a tolerance from an uncertainty.
Three quick stories from this topic
Readings from nothing
An Arduino input pin wired to nothing still returns readings that shift when a hand nears
The board's converter turns whatever voltage is on the pin into a code from 0 to 1,023. With nothing attached, that code drifts with the other inputs and with how close your hand is. A number alone doesn't prove anything was measured.
A converter can't refuse
A 10-bit converter sorts any input voltage into one of 1,024 codes. It has no code for 'nothing here', so it always reports something.
What makes a number a measurement
A code means something only when a known sensor is attached and the conversion from code to physical units has been worked out.
A sensor can warm itself
A thermistor thermometer warms its own sensor every time it takes a reading
Reading a thermistor means passing an electric current through it, and that current heats it. The effect is called self-heating. NIST lists it among the thermistor's disadvantages and says it may be large.
Why it has to pass a current
A thermistor signals temperature through its electrical resistance, which can only be read by sending a current through it.
The number won't warn you
A self-heated sensor gives a steady, plausible reading. It's the temperature of the warmed bead, not of its surroundings.
Platinum defines the temperature scale
The international temperature scale names platinum thermometers and no mercury ones
From minus 259.35 to 961.78 degrees Celsius, the only defining instrument in the 1990 scale is the platinum resistance thermometer, which reads temperature from the electrical resistance of platinum. NIST stopped calibrating mercury thermometers altogether in 2011.
Why platinum
Platinum's resistance rises with temperature in a stable, repeatable way. A conventional PRT built to give 100 ohms at 0 degrees Celsius reads about 80 ohms at minus 50 and 120 ohms at 50, a change of about 0.4 ohms per degree. Units made to exacting specifications, called standard PRTs, are used to interpolate temperatures under the 1990 scale.
Mercury isn't the benchmark
The scale makes no mention of mercury thermometers, and NIST stopped calibrating them on March 1, 2011. Digital alternatives typically match or exceed their accuracy and settle about ten times faster, though each sensor family has its own working range.
Sources
- Mercury thermometer alternatives: thermistor, National Institute of Standards and Technology
- analogRead reference source, Arduino
- Mercury thermometer alternatives: platinum resistance thermometers (PRTs), National Institute of Standards and Technology
- Mercury thermometer alternatives, National Institute of Standards and Technology





