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.

4 short lessons · about 22 minutes · 4 sources · updated November 2026

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?

Before you readA common digital thermometer has a tiny ceramic bead in its tip. What does the instrument actually measure at that bead?

Correct.Not quite. The answer is How well the bead conducts electricity.

It measures how well the bead conducts electricity. Every degree on the display is worked out from that, and this lesson shows how.

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.

Check yourselfThe most common kind of thermistor gets warmer. What change in the thermistor gives the instrument its temperature signal?

Correct.Not quite. The answer is Its electrical resistance decreases..

In the most common kind of thermistor, resistance falls as temperature rises. Rising resistance belongs to a few special types. A thermistor doesn't generate current either. The circuit passes a current through it and measures the effect of its changed resistance.

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.

Check yourselfA cool probe is placed in a hot liquid and the reading is taken immediately. What is the instrument reporting?

Correct.Not quite. The answer is The temperature of the sensor, which hasn't yet reached the liquid's temperature.

A thermistor responds to its own temperature, and the reading tracks the liquid only once the two have equalized. Taken immediately, the number is an accurate report about the sensor and a misleading one about the liquid. So it does mean something, just not about the liquid. Thermal contact and time are part of what's being measured.

Lessons in this topic

  1. 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.

    Essentials · 5 min

  2. 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.

    Essentials · 6 min

  3. 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.

    Deeper · 6 min

  4. Choose the sensor for the job

    Compare thermistors, platinum thermometers and thermocouples by range and sensitivity, then separate a tolerance from an uncertainty.

    Deeper · 5 min

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

This topic is part of Measure, design and learn from failure, a guided path through related topics.

  • Why sampling too slowly creates signals that aren't there

    Measure a signal often enough and the samples hold all of it. Measure a little too slowly and its fast parts come back disguised as slow ones, with nothing in the data to give them away.

    4 lessons · 23 min

  • How electric circuits work

    A circuit is a loop that lets charge carry energy from a source to whatever does the work. Learn what voltage, current and resistance measure, how they connect, and why a short circuit trips a breaker.

    4 lessons · 16 min

  • The transistor

    A transistor is a switch with no moving parts, worked by a small voltage. See how it switches and amplifies, how Bell Labs built the first one in 1947, and how billions now fit on one chip.

    4 lessons · 16 min

  • How a heat pump moves heat

    See how a machine warms a house with heat taken from freezing outdoor air, follow its refrigerant around the loop, and learn to read the performance number on its spec sheet.

    4 lessons · 16 min

  • How feedback keeps a machine on target

    Cruise control holds your speed on a hill it can't see. Follow the loop that does it, from measuring the gap to correcting it, and find out why correcting faster can cause new problems.

    4 lessons · 15 min

  • Why automatic controllers overshoot and oscillate

    A controller that corrects too hard, or on an out-of-date reading, swings past its target and back. Meet the three-term PID controller, the way engineers tune it and the failures no tuning can fix.

    4 lessons · 25 min

All engineering & inventions topics · Take the quiz