I am brand new to Arduino programming and am having a difficult time getting my code to compile.
The goal is to create a puzzle with four readers and to compare the UID codes and readers against a known key. In other words, put the tags in the correct order and the puzzle will unlock. I have removed the unneeded PICC information, the LED and relay related code to simplify this but I cannot get past getting the UIDs associated with the variable RFID. I have tried byte, string and byte string. I searched the internet and tired a number of options and looked through the MFRC522 library but it is beyond my skill level.
My plan is to use the string value of RFID against Key to toggle the boolean Correct ID. Get it right and the LEDs and relay state change and the puzzle resets after a delay. Get it wrong and the led flashes and the loop continues.
Code is attached
Elizabeth_Puzzle_6.ino (2.96 KB)