CoRE - Get peer assistance here with setting up Pistons

I’m a bit of a fiddler and have changed some of my pistons.
This is working for me.
You might want to try something like this.
The timer resets when there is motion and the light is still on.