You can read the state of a button using Arduino and a few lines of code. The actual state is shown in the Serial Monitor window as 0 or 1, 0 meaning the button is not pressed and 1 that the button is ...
The readability of your code can make the difference between your project being a joy to work on, or an absolute headache. This goes double when collaborating with others. Having easily parsed code ...