The light is on as long as there is movement in the room with a motion sensor

Try watching this video

In the video it uses the countdown app , however I use it with the chronograph app and it works just as well. The concept is when movement is detected and it’s dark enough, switch the light on and pause the timer.then when no motion detected restart the timer and only if no motion detected and the timer ends will it switch the lights off. If however motion is detected, again before the timer ends the whole process starts again.