Motion: lights on for 3 minutes, if there is motion again within 3 minutes: set the timer again for 3 minutes

Hint 3