I am trying to add a delay to my motion sensor. My motion sensor is
supposed to turn off lights if the hallway lights are turned on (hallway
lights turned on = leaving. Hallway lights turned off = coming home).I
am trying to use the following snippet...