Door Sensor Alarm

Sounds like you have to look for tags and detection gates as used in shops to prevent shop theft. Probably cheaper and more reliable than trying to roll your own (unless your time is free).