DEV Community

Discussion on: What's wrong with that Arduino wining?

eric23 profile image

You need pull low resistors.
Have a 10k resistor run from ground to the input. Do that for each input using a total of three resistors.
Now connect one end of the switch to +5v. And the other end of the switch run to the input. Again, do that for each input.
So when the switch is open the input will read low. When the switch is closed the input will read high.

sbstyn profile image
Sbstyn Author

Thanks man!