Dogs may sense Earth's magnetic field and use it like a compass.