Hi, I am trying to make a burglar alarm panel with an Arduino, the problem i am having is for the time delay. Pin 2 is a switch, which will be the door contacts for the alarm, when opened, there is a 10 second delay before pin 13 becomes HIGH, which will be the siren. The problem i am having is, he delay can be stopped by closing the door, so it is rendered useless. I need it to continue counting down, even if the door is closed and activate pin 13, is it simple to make it latch the delay?