As this code I read the card and inform if it is registered or not. Now I need to insert two rfid readers into the Arduino. How to add the second rfid reader in this code?
include SPI.h
include MFRC522.h
define LED_VERDE 6
define LED_VERMELHO 7
define BUZZER 8
define SS_PIN 10
define RST_PIN 9
String IDtag = "";
bool Permitido = false;
String TagsCadastradas[] = {"ID_1"};
MFRC522 LeitorRFID(SS_PIN, RST_PIN);
void setup() {
Serial.begin(9600);
SPI.begin();
LeitorRFID.PCD_Init();
pinMode(LED_VERDE, OUTPUT);
pinMode(LED_VERMELHO, OUTPUT);
pinMode(BUZZER, OUTPUT);
}
void loop() {
Leitura();
}