The door switch is used to prevent intrusion. It connects to the I/O port on the camera. If tampered with, an alarm goes off.