turns on an outlet when the door opens