Wanting to add to my piston for lights

So far this piston works for me, except I want to add a little more to it. I want to continue the piston if it senses more motion (maybe add more time to the countdown). Like if someone steps in the room, walks away, comes back in a little later, etc. What would I have to change for that?

Thanks for the that! Knew it needed to be cleaned up since I wasn’t sure if they’d work without them. As soon as I get home tonight I will try this out.

That definitely did it. Thanks so much! One question though, when the sensor activates before the time expires, the piston starts again so it makes it start again from 30% and then fades to the target setting. Is it possible to just make it stay at the target setting?

Thanks again! Works great :relaxed: