If nothing has happened while passing the magnet, open the sensor and check that the batteries are still in place. Also check that the foam is not placed in front of the LED. Once these checks have been carried out, repeat the operation.