The potentiometer works on the principle that at constant temperature, the resistance of a wire is proportional to its length.