The level of button1 never changes in that code. It needs a button1 = digitalRead(button1Pin); somewhere, like at the top of loop().
The level of button1 never changes in that code. It needs a button1 = digitalRead(button1Pin); somewhere, like at the top of loop().