A device that measures the strength and direction of the Earth's magnetic field, which can be affected by seismic activity.