There are both contact and contactless sensors with several different measuring techniques, such as potentiometer, inductive and magnetic contactless. Output signal is analog potentiometer / 0,5-4,5 / 0-10 VDC or 4 – 20 mA, or digital.
Conductive linear potentiometers with 10 – 300 mm measuring range