Skip to main content

How to Connect RFID Scanner to PHP using NodeMcu Wifi Module


In this tutorial, we will learn how to Connect RFID to PHP & MySQL Database with NodeMCU ESP8266. RFID-RC522 Module with NodeMcu ESP8266 and then I'm sending data of RFID to MySQL Database. we are just reading the serial data coming from NodeMCU ESP8266 and then publishing that to MySQL Database through PHP code. This project can store the Credentials of Students or Employees.

Connect RFID to PHP and MySQL Database with NodeMCU ESP8266


Hardware Components Required
NodeMcu ESP8266
RFID-RC522 Module
Jumper Wires
Micro USB Cable
Mini Breadboard (optional)
Software Required
LED Lights 
Arduino IDE
XAMPP server
PHP Source Code
RFID-RC522 Library
NodeMcu ESP8266 Library and Board Manager

Facebook page:

Please visit my  my YouTube Channel for the  explanation and you can also download the source code in video description.


Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.


1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Add new comment