Linear potentiometer for suspension travel
A potentiometer is a variable resistor with three terminals - two are the two ends of the resistance element, and the third is a contact that slides along the resistance element, so the reistance between the sliding contact and either end varies with the slider's position.

You would use it something like this:







simulate this circuit &ndash; Schematic created using CircuitLab