“Door sensor (reed switch/magnet) — does what it says on the tin. Well, it would if it actually came in a tin. Shove one wire end into a spare GPIO on your Pi, ground the other and you too can make flashing lights and noisy buzzing noises if someone opens your secret munchie stash when you're not looking. Simple!”