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 ...
Hi, my name is Rahmat Hidayat. I code for fun and sometimes share my code here so I can reuse it later. Feel free to use or modify this project. If you need help setting it up, follow this tutorial.