Buena tarde a todos, soy principiante y tengo un problema en mi sketch para control de acceso me gustaria que me hecharan la mano donde puedo reducir
#include <SPI.h>
#include <MFRC522.h>
#include <Wire.h>//Libreria para bus I2C
#include <LiquidCrystal_I2C.h>//Libreria para pantalla LCD I2C
#define SS_PIN 10
#define RST_PIN 9
#define Buzzer 7 // Pin del Buzzer
#define RELAY 6 // Pin del Relay
LiquidCrystal_I2C lcd(0x27,16,2);//crea una instancia de pantalla I2C
MFRC522 mfrc522(SS_PIN, RST_PIN); // Crea la instancia MFRC522
void setup()
{
Serial.begin(9600); // Inicializa la comunicacion serial
SPI.begin(); // Inicializa el bus SPI
mfrc522.PCD_Init(); // Inicializa el MFRC522
pinMode(Buzzer, OUTPUT);
pinMode(RELAY, OUTPUT);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,HIGH);
lcd.init();//Inicializa la pantalla
lcd.backlight();//Enciende la luz de fondo
lcd.setCursor(0,0);
lcd.print(" Iniciando...");//Escribe el mensaje
lcd.setCursor(0,1);//Ir a la segunda fila
lcd.print("Sotun V4.280422");//Escribe el mensaje
}
void loop()
{
// Mirando para nuevas tarjeras
if ( ! mfrc522.PICC_IsNewCardPresent())
{
return;
}
// Selecciona una de las tarjetas
if ( ! mfrc522.PICC_ReadCardSerial())
{
return;
}
// Muestra el UID sobre el Monitor Serial
String content= "";
byte letter;
for (byte i = 0; i < mfrc522.uid.size; i++)
{
content.concat(String(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " "));
content.concat(String(mfrc522.uid.uidByte[i], HEX));
}
Serial.println();
content.toUpperCase();
// Tarjetas Autorizadas
if (content.substring(1) =="AA 01 B7 5C") //Casa 01A-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="5A E7 B8 5C") //Casa 01A-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="33 C0 53 97") //Casa 01B-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="B6 3D 91 5D") //Casa 02A-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="04 F4 84 9A DF 49 80") //Casa 02B-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="04 52 C0 9A DF 49 81") //Casa 02B-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="39 CA D3 B8") //Casa 02B-03
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="B9 F9 CF B8") //Casa 02B-04
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="56 1C 8C 5D") //Casa 03A-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="96 8E 93 5D") //Casa 03A-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="36 3D 8E 5D") //Casa 03B-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="96 71 8F 5D") //Casa 04AB-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="3A A0 E7 80") //Casa 04AB-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="0A FB CF 80") //Casa 04AB-03
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="9A 87 C9 5C") //Casa 04AB-04
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="A9 48 FA B9") //Casa 05A-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="19 A3 CC B8") //Casa 05A-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="03 8F 2B 97") //Casa 05B-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="04 10 D7 82 AD 5E 81") //Casa 06A-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="04 C3 F1 82 AD 5E 80") //Casa 06A-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="66 94 93 5D") //Casa 06A-03
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="76 CE 57 3A") //Casa 06B-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="04 3C 9C 82 AD 5E 80") //Casa 06B-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="A6 9B 94 5D") //Casa 07A-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="3A 53 BD 5C") //Casa 07A-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="D6 B3 92 5D") //Casa 07A-03
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="04 EF 9C 82 30 4C 80") //Casa 07B-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="B6 6F 58 3A") //Casa 07B-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="2C 0A 2A 49") //Casa 07B-03
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="9C DD 58 49") //Casa 07B-04
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="CC 87 C5 38") //Casa 07B-05
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="04 51 DF 82 30 4C 81") //Casa 07B-06
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="04 6C 3F 82 AD 5E 81") //Casa 08A-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="46 B0 95 5D") //Casa 08B-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="EA 65 04 5D") //Casa 08B-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="FA A7 EF 5B") //Casa 08B-03
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="73 1C 38 97") //Casa 09A-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="16 C8 51 3A") //Casa 09B-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="36 D8 90 5D") //Casa 09B-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="04 42 6E 82 30 4C 80") //Casa 09B-03
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="2A CF E4 80") //Casa 09B-04
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="BA 49 EE 81") //Casa 09B-05
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="1A 48 F4 80") //Casa 09B-06
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="76 1F 8E 5D") //Casa 10A-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="16 33 90 5D") //Casa 10A-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="B6 B3 96 5D") //Casa 10A-03
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="56 C1 92 5D") //Casa 10B-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="06 7A 8B 5D") //Casa 10B-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="66 AB 90 5D") //Casa 10B-03
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="76 6C 58 3A") //Casa 11A-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="16 9D 8F 5D") //Casa 11B-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="E6 C0 90 5D") //Casa 11B-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="96 14 56 3A") //Casa 12A-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="3C A1 1E 49") //Casa 12A-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="A7 74 79 4B") //Casa 12A-03
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="D9 DE D1 B8") //Casa 12B-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="2A 50 EB 5B") //Casa 12B-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="46 56 51 3A") //Casa 13A-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="16 EB 8F 5D") //Casa 13A-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="BA 2B 99 15") //Casa 13A-03
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="86 AE 55 3A") //Casa 13B-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="36 E4 95 5D") //Casa 13B-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="96 73 96 5D") //Casa 14A-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="6A 37 C7 5C") //Casa 14A-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="4A 12 03 5D") //Casa 14B-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="83 45 FE 96") //Casa 14B-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="DA 45 BA 5C") //Casa 15A-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="AA 7D EE 5B") //Casa 15A-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="CA F6 DC 5C") //Casa 15B-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="96 DA 8B 5D") //Casa 15B-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="XX XX XX XX") //Casa 16A-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="16 2E 8B 5D") //Casa 16B-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="86 AB 50 3A") //Casa 16B-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="26 D7 91 5D") //Casa 16B-03
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="36 75 91 5D") //Casa 16B-04
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="36 17 58 3A") //Casa 17A-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="B6 60 92 5D") //Casa 17A-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="AA 74 E6 5B") //Casa 17A-03
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="2A ED D6 5C") //Casa 17A-04
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="04 AB C7 82 30 4C 80") //Casa 17B-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="C6 BC 92 5D") //Casa 18A-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="86 5E 8C 5D") //Casa 18A-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="3A 98 EC 5B") //Casa 18A-03
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="06 FE 8B 5D") //Casa 18B-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="76 45 8F 5D") //Casa 18B-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="AA 57 33 15") //Casa 19A-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="49 11 58 59") //Casa 19A-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="D4 C9 6B B8") //Casa 19A-03
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="0D 55 FC FB") //Casa 19A-04
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="DE D3 19 22") //Casa 19A-05
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="23 5D 59 97") //Casa 19A-06
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="04 5D 53 82 30 4C 80") //Casa 19B-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="16 E7 8F 5D") //Casa 19B-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="A6 CA 95 5D") //Casa 20A-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="04 DD 4F 82 AD 5E 80") //Casa 20A-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="AA 7C 0A 5C") //Casa 20A-03
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="0C 56 DF 38") //Casa 20A-04
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="1A 10 E1 5C") //Casa 20A-05
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="76 50 95 5D") //Casa 20B-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="04 80 70 82 AD 5E 81") //Casa 20B-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="04 37 5B 82 AD 5E 81") //Casa 20B-03
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="AA B8 37 16") //Casa 21AB-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="04 87 72 82 AD 5E 80") //Casa 21AB-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="04 30 9C 9A DF 49 81") //Casa 21AB-03
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="56 37 92 5D") //Casa 21AB-04
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="86 00 8E 5D") //Casa 22A-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="A6 9A 96 5D") //Casa 22A-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="04 C5 3C 82 AD 5E") //Casa 22A-03
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="F6 E0 8B 5D") //Casa 22A-04
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="C6 BE 8C 5D") //Casa 22A-05
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="AA F2 C9 5B") //Casa 22A-06
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="03 36 3D 97") //Casa 22B-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="73 B2 3B 97") //Casa 22B-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="53 76 15 97") //Casa 22B-03
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="26 52 92 5D") //Casa 23A-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="23 88 23 97") //Casa 23A-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="86 7F 50 3A") //Casa 23B-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="F6 1C 55 3A") //Casa 23B-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="83 97 43 97") //Casa 24A-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="29 C5 CC B8") //Casa 24B-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="BA 58 F8 5C") //Casa 24B-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="CA 66 B8 5C") //Casa 24B-03
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="9A 79 D8 5C") //Casa 24B-04
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="8A 59 B3 5C") //Casa 26A-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="2a 94 ff 5c") //Casa 26A-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="4c 6b 26 4a") //Casa 26A-03
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="F6 69 8D 5D") //Casa 26B-01
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="36 97 8F 5D") //Casa 26B-02
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="B6 90 8B 5D") //Casa 26B-03
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="26 15 52 3A") //Casa 26B-04
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="2C 1B 2D 49") //Casa 26B-05
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else if (content.substring(1) =="4C 14 39 49") //Casa 26B-06
{
lcd.setCursor(0,0);
lcd.println(F(" Bienvenido "));
digitalWrite(Buzzer,HIGH);
delay(500);
digitalWrite(Buzzer,LOW);
digitalWrite(RELAY,LOW);
delay(250);
digitalWrite(RELAY,HIGH);
lcd.clear();
}
else
{
}
lcd.clear();
lcd.setCursor(0,0);
lcd.print(" Acerque Tag...");
lcd.setCursor(0,1);
lcd.print(" Priv Geranios");
}