Security Access System
Security Access System
h>
void setup() {
// Initialize the LCD with 16 columns and 2 rows
lcd.begin(16, 2);
void loop() {
// Check for button presses
if (digitalRead(buttonAPin) == LOW) {
checkButton('A');
}
if (digitalRead(buttonBPin) == LOW) {
checkButton('B');
}
if (digitalRead(buttonCPin) == LOW) {
checkButton('C');
}
if (digitalRead(buttonDPin) == LOW) {
checkButton('D');
}