sensors detect the presence of a magnetic field