Hint
Put your cursor on a { and the matching } will be hi lighted.
Then you will see why the code after if buttonstate2 == LOW is never ever run.
It does not stop it just never passes that test.
Hint
Put your cursor on a { and the matching } will be hi lighted.
Then you will see why the code after if buttonstate2 == LOW is never ever run.
It does not stop it just never passes that test.