Switches and push buttons need debouncing. It is straightforward to do this with software, using a library. The advantages of the Switch library are: External pull-up resistors are not required.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results