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