Position sensor use the force of a magnet to change the electrical status of a reed switch.
POSITION SENSOR
EUROSWITCH