Set timer with slider for relay

Also, I recommend you to read this very useful article