Arduino RFID Library for MFRC522 (SPI, I2C and UART) with asynchroneous callbacks
Read/Write a RFID Card or Tag using the ISO/IEC 14443A/MIFARE interface. Modified from the original miguelbalboa to also support I2C and UART connections and provide, in addition to normal constant polling, an option to do asynchroneous callbacks. I.e. have a function called each time that a valid swipe has happend. Used at the

Author: GithubCommunity,miguelbalboa,

Maintainer: GithubCommunity,

Read the documentation

Go to repository


This library is compatible with the avr, STM32F1, teensy, esp8266, samd, esp32 architectures so you should be able to use it on the following Arduino boards:

Compatibility Note

Note: while the library is supposed to compile correctly on these architectures, it might require specific hardware features that may be available only on some boards.


To use this library, open the Library Manager in the Arduino IDE and install it from there.