We learn the principles behind magnetometers, sensors that measure the Earth’s magnetic field.