I'm currently working on a project where I need to control multiple ESPs via one button.
I set up a pin via
I connected the pin to a button which shorts to ground.
if (buttonState == LOW) calls my function correctly
BUT when I increase the length of the cable to the button it doesn't work anymore.
Im fairly new to electronics and would really appreciate a hint what to look at.