Hi, i need help how can i add reading delay in this code i just copy it online and it's working but the problem is everytime i tap my rfid cards it prints continuously.
#include "rdm630.h"
rdm630 rfid(6, 0); //TX-pin of RDM630 connected to Arduino pin 6
void setup()
{
Serial.begin(9600); // start serial to PC
rfid.begin();
}
void loop()
{
byte data[6];
byte length;
if(rfid.available()){
//concatenate the bytes in the data array to one long which can be
//rendered as a decimal number
unsigned long result =
((unsigned long int)data[1]<<24) +
((unsigned long int)data[2]<<16) +
((unsigned long int)data[3]<<8) +
data[4];
Serial.println(result);
}
}