added realtime check to door status
fixed light status