Hall effect switch:

A device for switching off or on the supplied voltage with the absence or presence of the magnetic field. Also called Hall generator, it consists of a rotor with vanes, a conductive element with a permanent magnet and the Hall IC.