window magnetic sensor