Magnetic door sensor reed switch , Normally Open
This sensor is essentially a reed switch, encased in an plastic shell. Normally the reed is 'open' (no connection between the two wires). The other half is a magnet. When the magnet is less than 13mm (0.5") away, the reed switch closes to create a circuit. They're often used to detect when a door or drawer is open, which is why they have mounting tabs. You can mount them either by using the supplied double-sided tape pads, or just screw them in place.