A magnetic sensor is a sensor that detects the magnitude of magnetism and geomagnetism generated by a magnet or current. 

Online store for Magnetic sensors by Omron.