A magnetometer is a device that measures magnetism—the direction, strength, or relative change of a magnetic field at a particular location. ... Magnetometers are widely used for measuring the Earth's magnetic field and in geophysical surveys to detect magnetic anomalies of various types.