added interrupts to door sensor.