Or ditch the pull down and wire the switch from ground to the input and enable the internal pullup.
pinMode(pin, INPUT_PULLUP);
The switch will read LOW when pushed.
Or ditch the pull down and wire the switch from ground to the input and enable the internal pullup.
pinMode(pin, INPUT_PULLUP);
The switch will read LOW when pushed.