Multiple lines of evidence suggest that pigeons sense magnetic fields by detecting electric currents in their inner ears.
Measure twice, cut once. That’s sound advice, though no guarantee you won't measure wrong twice. Some measuring errors occur ...