Use a normally open reed switch.... when the door opens the magnet moves in= to contact with the reed switch. When the door closes, the magnet is move= d away. gus --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .