One cheap alarm door contact. A reed switch in a nice case, and a matching magnet. Cheap or free, depending if you can get on a building site and look through the scrap and grab one from a renovation, or find them at your local hardware or used building material supplier, or any alarm installer has old ones.