Program an RFID in an Arduino Mega

Hi! Can someone help me with the code of the RFID card? I have searched different code but when I try to run it it tells me it is deprecated.

MF-RC522_RFID.ino (4.11 KB)