Magnetic field sensor (in three versions)