#include < LiquidCrystal.h >
// Define pins for LCD, button, and LEDs
const int lcd_rs = 12;
const int lcd_en = 11;
const int lcd_d4 = 5;
const int lcd_d5 = 4;
const int lcd_d6 = 3;
const int lcd_d7 = 2;
const int buttonPin = 7;
const int ledPin1 = 8;
const int ledPin2 = 9;
// Initialize LCD and variables
LiquidCrystal lcd(lcd_rs, lcd_en, lcd_d4, lcd_d5, lcd_d6, lcd_d7);
int count1 = 0;
int count2 = 0;
int lastButtonState = HIGH; // Stores the last button state
unsigned long lastDebounceTime = 0; // Allows debouncing
const unsigned long debounceDelay = 50;
void setup() {