Toll-Free Customer Support 24/7

RFID Sheild Ardiuno Code

char msg[13],i=0,count=0;;

void setup() {

 Serial.begin(9600);
   delay(1000);
   Serial.println("researchdesignlab.com");
   Serial.println("START SWIP THE CARD");
}

void loop() {

  while(Serial.available() > 0 )
  {
 
    char REC = Serial.read();
    msg[i] = REC;
    count ++;
    i++;
  }
 
    
  if(count > 12)
  {
    i=0;
  Serial.print("RFID TAG : ");
    Serial.print(msg);
       Serial.println("START SWIP THE CARD");
    count = 0;
    
  }
    
}

Back to top