Magnetic field sensor usage