An alarm that beeps when the door is left open more than X minutes (say, 5 minutes) only requires a stupidly simple circuit and about $5 in parts.
No smarts needed (though it's probably cheaper to make it with a microcontroller than have the timer circuit be done with discrete parts).