How to set timer in this code that the device will automatically off after 3 seconds in case of manual push

[Unformatted code removed by moderator]

Please edit your post and add triple backticks ( ``` ) before and after your sketch.

Iā€™d also shorten your topic title, and explain in much more detail - within the body of your post - exactly what it is that you are trying to achieve.

Pete.

2 Likes