RFID Project

Hello,
I do my Door lock with RFID and i want to make if i tap the card to the RFID the door will be open and if i want to lock the door i need to tap again the card. can you check what is wrong with my code

Thank you

Door.ino (4.54 KB)

What happens when you run the code ?