On this page
You put a thermistor or a light-dependent resistor (LDR) in series with a fixed resistor, connect a supply, and read the voltage across the sensor. As the temperature or the light changes, the output moves. But how much it moves depends on the fixed resistor you chose. Pick it badly and the output barely changes. Pick it well and it swings across most of the supply. The value that gives the largest swing is not the average of the sensor's two extremes. It is their geometric mean, and for wide-range sensors the difference is large.
Problem idea: Czech Physics Olympiad 2012 (53rd), regional round, category A, problem 3 (CC BY 3.0 CZ). The real sensor cases, the comparison with the halfway value and all numbers here are our own.
How does a sensor divider turn resistance into voltage?
If the basic circuit is new to you, start with how a potential divider uses an LDR or thermistor, which explains which way the output moves and where to place the sensor. Here we need one formula. With a fixed resistor R and a sensor of resistance R_s in series across a steady supply U, the voltage across the sensor is
V = U × R_s/(R + R_s)
Say the sensor runs from R_min (hot, or bright) to R_max (cold, or dark). The output runs from U R_min/(R + R_min) to U R_max/(R + R_max). The swing is the difference:
ΔV = U × [R_max/(R + R_max) − R_min/(R + R_min)]
If you take the output across the fixed resistor instead, you get the same swing with the direction reversed.
What value of fixed resistor gives the largest swing?
Look at the two limits first. If R is tiny, both outputs are close to U and the swing is small. If R is huge, both are close to zero and the swing is small again. So there is a maximum in between. Differentiate ΔV with respect to R and set it to zero:
R_max/(R + R_max)² = R_min/(R + R_min)²
Take square roots and rearrange: √R_max (R + R_min) = √R_min (R + R_max). This gives R(√R_max − √R_min) = √(R_min R_max)(√R_max − √R_min), so
R = √(R_min × R_max)
Write n = R_max/R_min. Putting this R back in, the swing as a fraction of the supply is
ΔV/U = (√n − 1)/(√n + 1)
The swing depends only on the ratio n. A sensor that changes 4 times gives at most a third of the supply. One that changes 100 times gives 82%. One that changes 10,000 times gives 98%.
Why is "roughly halfway" not quite right?
The LDR post linked above suggests picking a fixed resistor roughly halfway between the sensor's high and low resistance. For a sensor whose range is narrow, that is a fair rule of thumb, and it gets you most of the possible swing. For a sensor whose resistance changes by a large factor, the halfway value sits far too close to R_max, and a lot of the swing is lost.
The reason is that the divider responds to ratios, not differences. The output depends on R_s/R, so a resistor that is 10 times R_min and 10 times smaller than R_max treats both ends evenly. The arithmetic mean of 10 kΩ and 1 MΩ is 505 kΩ, only half of R_max. The geometric mean, 100 kΩ, is a factor of 10 from each end.
Worked example: a light sensor and a thermistor
A light sensor. The datasheet for the common GL5528 LDR (Rapid Electronics copy) gives a resistance of 10 to 20 kΩ at 10 lux and a dark resistance of at least 1 MΩ. Take 10 kΩ (dim light) to 1 MΩ (dark) on a 5 V supply, so n = 100.
Geometric mean: R = √(10 kΩ × 1 MΩ) = √(10¹⁰ Ω²) = 100 kΩ.
Dim light: V = 5 × 10/(100 + 10) = 0.45 V.
Dark: V = 5 × 1000/(100 + 1000) = 4.55 V.
Swing: 4.09 V, which is 82% of the supply. Check: (√100 − 1)/(√100 + 1) = 9/11 = 0.818.
Halfway value: R = (10 kΩ + 1 MΩ)/2 = 505 kΩ. Then V runs from 5 × 10/515 = 0.10 V to 5 × 1000/1505 = 3.32 V, a swing of 3.23 V, or 65%.
In brighter light this LDR falls further. If it reached 100 Ω (an illustrative value, not from this datasheet), the range would be 100 Ω to 1 MΩ, n = 10,000. Then 10 kΩ gives a 98% swing (0.05 V to 4.95 V), while the halfway value of about 500 kΩ gives only 67% (0.001 V to 3.33 V).
A thermistor. Vishay's NTCLE100E3 datasheet lists its 10 kΩ NTC thermistor at 32,554 Ω at 0 °C and 2,490 Ω at 60 °C, so n = 13.1.
Geometric mean: R = √(2490 × 32,554) = 9.0 kΩ. Swing 56.7%, from 1.08 V to 3.92 V on 5 V.
Halfway value: 17.5 kΩ. Swing 52.6%.
Nearest standard value: 10 kΩ gives 56.6%, almost the maximum, because the curve is flat near its peak.
Units check: R_min × R_max is in Ω², and its square root is in Ω.
When should you not use the geometric mean?
The rule maximises the swing between the two ends of the range. Sometimes you care about one point instead, such as a streetlight that must switch at dusk. Then you want the largest change in output for a small change in R_s near that point. Differentiating V with respect to R_s gives U R/(R + R_s)², which is largest when R = R_s. So choose R equal to the sensor's resistance at the set point.
Keep the current small. The current heats the thermistor itself. The power in the sensor is largest when R_s = R, and equals U²/4R, which for 9.0 kΩ on 5 V is 0.69 mW. Vishay quotes a dissipation factor of about 7 mW/K for information only, so the self-heating is about 0.1 K here. A bigger supply or a much smaller resistor would make it worse. For how a real fever thermometer reads its thermistor, see how a digital thermometer measures body temperature.
If the algebra of the maximum gives you trouble, the Fermi Problem Library has current electricity problems with a step-by-step solver that explains the reasoning. If you are preparing for JEE Main & Advanced, Fermi Test Prep offers personalised preparation with an AI tutor, live classes, adaptive mocks, mentorship and a study plan that updates based on mastery.
Quick checklist
Output across the sensor: V = U R_s/(R + R_s).
Largest swing between R_min and R_max: R = √(R_min R_max).
Swing then equals (√n − 1)/(√n + 1) of the supply, with n = R_max/R_min.
Halfway is fine for narrow ranges and poor for wide ones.
For the strongest response at one set point, use R equal to the sensor's resistance there.
Keep the current small so the thermistor does not heat itself.



