Maximising the range of a resistive sensor.

Assume sensor with maximum resistance R1 and minimum resistance R0. We seek to put it in series with a single resistor, R , whose value we seek so that the voltage range will be a maximum.

Case 1: sensor on top

In this case we have V max = R R+R0 V in and V min = R R+R1 V in so that the difference is
V diff =( R R+R0 - R R+R1 ) V in
I seek to maximise this difference but I don't care about the absolute scale so I will maximise
V diff V in =( R R+R0 - R R+R1 )
Differentiating, I get
d V diff V in dR =( 1 R+R0 - R ( R+R0 ) 2 - 1 R+R1 + R ( R+R1 ) 2 )
=( 1 R+R0 - 1 R+R1 ) +( R ( R+R1 ) 2 - R ( R+R0 ) 2 )
=( ( R+R0 ) ( R+R0 ) 2 - ( R+R1 ) ( R+R1 ) 2 ) +( R ( R+R1 ) 2 - R ( R+R0 ) 2 )
=( R0 ( R+R0 ) 2 - R1 ( R+R1 ) 2 )
= R0 ( R+R1 ) 2 -R1 ( R+R0 ) 2 ( R+R1 ) 2 ( R+R0 ) 2
Setting this to zero, I find
R0 ( R+R1 ) 2 -R1 ( R+R0 ) 2 =0
R0 R 2 +2RR0R1+R0R 1 2 -R1 R 2 -2RR0R1-R1R 0 2 =0
R0 R 2 -R1 R 2 =R1R 0 2 -R0R 1 2 R 2 = R1R 0 2 -R0R 1 2 R0-R1 =R0R1
Thus, the best value is the geometric mean of the high and low values, R= R0 × R1 .

Case 2: Sensor on the bottom

This is only slightly different. We have V max = R1 R+R1 V in and V min = R0 R+R0 V in so that the difference is
V diff =( R1 R+R1 - R0 R+R0 ) V in
Again, I will maximise
V diff V in =( R1 R+R1 - R0 R+R0 )
Differentiating, I get
d V diff V in dR =( - R1 ( R+R1 ) 2 + R0 ( R+R0 ) 2 ) =0
This again leads to
R0 ( R+R1 ) 2 -R1 ( R+R0 ) 2 =0
so that the answer is the same in both cases. Use the geometric mean of the two resistors.

Summary

You get the best range out of a resistive sensor when it is connected as one leg of a voltage divider if the value of the other leg, the fixed resistor, is chosen as the geometric mean of the maximum and minimum resistances of the sensor over the desired range, R= R min × R max .
In practice, simply choose the nearest avaiable resistor to the geometric mean. It is not worth trying to get any closer.