Home Security Alarm coding

If I needed to do that, I would start with this:

and rework it so:

event triggers alarm
log current milliseconds
( Arduino does other things )
when current milliseconds = logged milliseconds + 10 seconds
deactivate alarm