door contact  and infrared anding