Hi,
I am working on a project that uses an UHF RFID sensor to read and print the ID of UHF RFID tags which operate in 860 - 960 Mhz. My code does output an ID of a tag I scan but sometimes when I move the tag away from the sensors range and scan it again it outputs a different ID and there's even been occasions where if I leave the tag in front of the sensor it gives the same reading but it changes overtime.
Here's an example of the same tag changing its ID when I hold in front of the sensor:
Here is my code:
unsigned char incomingByte;
void setup()
{
Serial.begin(9600); // Initialize hardware serial on RX: 0, TX: 1
Serial.println("Start RFID read!\n");
}
void loop()
{
while (Serial.available() > 0)
{
incomingByte = Serial.read();
Serial.print(incomingByte, HEX);
Serial.print(' ');
}
Serial.println();
delay(1000);
}
If anyone could let me know why I am facing these issues and how I can fix it, it would be much appreciated!