The magnets are too weak and the contact surface is too smooth. Therefore the sensor does not stick properly to the housing.
Not tested.