// if the state has changed, increment the counter
if (buttonState2 == LOW)
{
How do you know that buttonState2 has changed ?
// if the state has changed, increment the counter
if (buttonState2 == LOW)
{
How do you know that buttonState2 has changed ?