Magnetometer
A magnetometer is a scientific instrument used to measure the strength and/or direction of the magnetic field in the vicinity of the instrument. Magnetism varies from place to place and differences in Earth's magnetic field (the magnetosphere) can be caused by the differing nature of rocks and the interaction between charged particles from the sun and the magnetosphere of a planet. Magnetometers are often a frequent component instrument on spacecraft that explore planets.