That is the original code that I just re-arranged so the button could be read without serial input available. I did not try to correct all of the code. I have no idea why the OP has a pinMode there nor what it is supposed to do.
That is the original code that I just re-arranged so the button could be read without serial input available. I did not try to correct all of the code. I have no idea why the OP has a pinMode there nor what it is supposed to do.