CoRE - Get peer assistance here with setting up Pistons

Hoping to get some help with a Laundry Monitor routine I found here:

I’m using a shock sensor instead of a power meter for my dryer. What’s the best way to ensure the shock sensor is open (dryer on) for 1+ min before setting the boolean = true. I’m trying to reduce the false positives of the dryer door opening or the dryer being bumped. I tried using the statement “Laundry Dryer (contact sensor) stays open for 2 minutes”, it doesn’t seem to be working as expected. Thanks