Okay, let's take this bit by bit: 1. cross check if your SS pin defined in code and hardware are th

Okay, let's take this bit by bit:

  1. cross check if your SS pin defined in code and hardware are the same - that's the only variable I notice in the code.
  2. UID is from the RFID tag. Are you placing the card on top of the reader? The main loop continually keeps scanning.
  3. If you doubt over hardware or connections made, hook a logic-analyzer and check the SPI frame.
Was this page helpful?