There are number of applications of the potentiometer or pots, of these one of the most common applications is the measurement of displacement. To measure the displacement of the body, this body, which is moving, is connected to the sliding element of the potentiometer.
As the body moves, the position of the slider located on the potentiometer also changes so the resistance between the fixed point and the slider changes. Due to this the voltage Vo across these points also changes. The change in voltage or the resistance is proportional to the change in the displacement of the body. Thus the voltage change indicates the displacement of the body. The potentiometer can be used for the measurement of translational as well as well rotational displacement. Since these potentiometers work on the principle of resistance, they are also called as the resistive potentiometers.

click to enlarge