Arduino (Counter as a Dead man Switch)

Hi,

It may not be rocket science for an astronaut but for a newbie like me it is.

I see the logic in that and it's the easy part but like I said, I'm searching for a good example
on how to do it. "Full" example would the correct word.

That's why I post my question