Why not use a switch that closes when the door opens?
I could draw you a circuit that would do what you want using a relay but it seems like the long way around a simple problem.


Greg Fretwell