which library?
did you double check the button? check with this code
const byte buttonPin = 8;
int buttonState = 0; // variable for reading the pushbutton status
void setup() {
Serial.begin(115200);
pinMode(buttonPin, INPUT);
}
void loop() {
// read the state of the pushbutton value:
buttonState = digitalRead(buttonPin);
// check if the pushbutton is pressed. If it is, the buttonState is HIGH:
if (buttonState == HIGH) {
Serial.println("BUTTON");
delay(15); // poor's man debounce
}
}
based on your previous code, I just removed all the non necessary stuff. it should display in the console when the button is pressed