We use cookies to enhance your browsing experience and analyze our traffic. By clicking "Accept", you consent to our use of cookies.
We use cookies to enhance your browsing experience and analyze our traffic. By clicking "Accept", you consent to our use of cookies.
#include <SoftwareSerial.h>
SoftwareSerial RFID(D5, D6); // RX and TX
String text;
void setup()
{
Serial.begin(9600);
RFID.begin(9600);
Serial.println("Bring your RFID Card Closer...");
}
char c;
void loop()
{
while (RFID.available() > 0) {
delay(5);
c = RFID.read();
text += c;
}
if (text.length() > 20)
check();
text = "";
}
void check()
{
Serial.println("---");
Serial.println("Card ID : " + text);
Serial.println("---");
}