Delay function with potentiometer

I’m trying to improve my cod for band saw project.

I’d like to have delay function with potentiometer from 2-10 seconds. (line 4)

Do you think is possible?

Thank you for any help you can offer

Delay_with_potentiometer.ino (628 Bytes)

(deleted)