added thread to notify when door is opened