...When I do so, I get odd readings, like it switching from 0 to 1 or 1 to 0 without the button being pressed....
Personally, for each input I would use the internal pullup resistor and use the switch to ground the pin, then look for a 0 on that pin:pinMode(input_pin, INPUT);digitalWrite (input_pin, HIGH); // enable internal pullup resistor
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16