Trying to turn off an output 1second after a switch is tripped

very nice!

So would you using Tools + Auto format before posting code.

Code that runs
all over the
page
like yours
does
is pretty
hard to read.