I use a MFRC522 reader with a Raspberry Pi4 to read RFID tags. The MFRC522 reader is connected to the GPIO pins on the Raspberry. The script in Python3.7 is below.