void setup() {
Serial.begin(9600);
}
void loop() {
// lcd.setCursor(2, 2);
int buttonState = digitalRead(0); // Read the state of the button
if (buttonState == LOW) {
Serial.println("pressed"); // Print "pressed" when button is LOW (pressed)
delay(500); // Debounce delay to avoid multiple prints (optional)
}
}