[Jeff Sandberg] demonstrates that ably with his project to use ancient 1990s burglar alarm ... sensors themselves sit on doors or windows. They use magnets and a reed switch to sense if the door ...