Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project.
As shown in the tutorial, a 0.1uF ceramic cap across the switch will help to denounce the switch. It the is S3 of the schematic of @LarryD with a cap across the switch.
I wired by switched with an external pull down (which i forgot to mention). Now i get this is bad
I'll try using the internal pullup, which i believe can be achived on all inputs but GPIO16 on NodeMCU (GPIO16 is using pulldown). I'll also add a cap and see if thats better.
Thanks
EDIT : i rewired using internal pullup and ceramic cap and modified the code consequently.
When i press the button only one increment, but when i release it i have one or two more increments. Also after a few presses the ESP hangs and resets.