Some windows and doors may also use magnets that activate the tiny red switch when you close. If the magnet moves out of range or the switch moves out of alignment, the sensor will send you a sound or an alert. When you install a magnetic sensor incorrectly, then it may cause false alarms and reduce reliability. That is why you should keep both pieces of sensor level and within range of each other while installing.