update to doorAlarm.py