This is a magnetic reed switch. It is great for adding to your alarm install it will trigger (wires will have continuity) when the two small magnets are separated.
So this works well on tools boxes or rear slider glass windows. If someone opens the window then the switch activates setting off your alarm.
Magnetic Reed Switch
$8.49Price