This is a useful addition to my previous article “Arduino EEPROM”. The article is still available. I have provided a link here for convenience https://www.edn.com ...
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 ...