Earth's magnetic field
A magnetometer can act as a digital compass by measuring Earth's magnetic field.