Connected RFID Reader EM-18 as in attached picture and wrote below code. But it is not detecting any cards. Please help
int count = 0;
void setup()
{
Serial.begin(9600);
}
void loop()
{
if(Serial.available())
{
count = 0; // Reset count to zero// Keep reading Byte by Byte from the Buffer till the Buffer is empty
{
char input = Serial.read();
Serial.print(input);
count++; //
delay(5); //
}
Serial.println();
Serial.print("Tag Length : ");
Serial.print(count);
Serial.println(" Bytes");
}
}