Hi Su Haihui,
The attachment is a script for RC522 reading Mifare card, please refer to it for details.
Have a great day,
Kan
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------