Added option to repeat alert

Added option to repeat alert until the door is closed.