#define BUTTON1 32

#include <ezButton.h>
ezButton button1(BUTTON1);
ezButton button2(33);
ezButton button3(25);

void setup(){
  Serial.begin(115200);
  pinMode(5, OUTPUT);
  button1.setDebounceTime(50);
  button2.setDebounceTime(50);
  button3.setDebounceTime(50);
}

void loop(){
  button1.loop();
  button2.loop();
  button3.loop();
  readButtonState(); // Call the function to check the button state
}

void readButtonState(){
  if(button1.isPressed()){
    Serial.println("Button 1 is pressed!");
  }
  if(button2.isPressed()){
    Serial.println("Button 2 is pressed!");
  }
  if(button3.isPressed()){
    Serial.println("Button 3 is pressed!");
  }
}