text: RFID Based Attendance System Using NodeMCU with PHP Web App
  Overview
  The RFID based attendance system is developed using PHP, CSS, and Javascript. An RFID Based Attendance System Using NodeMCU is a modern attendance system. Hence, is a very interesting project. It can be useful in different places like schools, Colleges, industry and private organizations to register the attendance of students, teachers, employees, etc. to tabulate monthly/daily working hours automatically. When the person with the correct RFID card swipes his/her RFID tag, His/Her arrival time will be stored in system Log. Usually, when the same person swipes his/her RFID tag again, the system will save it as his/her leaving time.
  The RFID attendance system is developed with the IoT platform. We have used NodeMCU ESP8266 development board with MF-RC522 Module to send the card UID to the PHP Web app and store data into the website database. Basically, the admin plays an important role in the management of this system.
  - Overview
  - Features:
  - Functionality Performed by users
  - Hardware Components Required
  - Software Required with Download Links
  - Technology Used in RFID attendance System Using NodeMCU
  - RFID Based Attendance System Network Topology
  - RFID RC522 Module
  - Specifications & Pin Details
  - Interfacing RFID RC522 with NodeMcu ESP8266 Module
  - How to run a server?
  - Deploying our PHP Web App
  - Setting Up Arduino IDE for NodeMCU ESP8266
  - Selecting Port and Board
  - Program/Sketch Code
  - Program Code Explanation
  - Video Tutorial of RFID Based Attendance System
  - Conclusion
  Also Read: IoT based RFID Attendance System Using ESP32, OLED Display, and RFID Module
  - Home Automation with MIT App Inventor and ESP8266
  - IoT based Silent Intruder Alarm using Arduino
  - Temperature Controlled Home Automation using Arduino
  - IoT Based RFID Smart Door Lock System Using NodeMCU ESp8266
  - IoT Based Flood Monitoring System Using NodeMCU & Thingspeak
  Features:
  -Secured Login System -Admin Panel -User Entry Log -User Management System -Multiple Device Management System -Filter the Log Data by Date, Time-In, Time-Out, and Department -Export those filtered data to Excel
  Functionality Performed by users
  Now, talking about the features of the RFID based attendance system using NodeMCU.The home page displays the admin login page. Unless You login to the system, you won’t be able to browse other available options. Hence the system is secured. Basically, the design of the RFID attendance system project is pretty simple. Hence the user won’t find any difficulties while enrolling his/her attendance. The user needs to swipe his/her card or a keychain to maintain attendance that includes the entry time as well. The major functions provided to admin are mentioned below:
  - Admin Login/Logout System
  - Edit and Update admin profile
  Manage Users
  - View users
  - Add New User
  - Edit and update the existing users
  - Remove Users
  From the admin panel, the admin can enroll new users, update and remove users from the user management system. Further, the admin can view all the attendance records.
  Manage Device
  - Add new device
  - Update existing device
  - Delete device
  - Update New token to the device
  - Change the device mode (Enrollment mode: to register new users to the system, Attendance Mode: To record attendance of registered users)
  Actually, from the devices section admin can add a new device, update the device, and remove the device. To add a new device you need to enter a device name and its department. Furthermore, you can also update the device token from the device UID Section.
  View Users Log
  From the user log menu, you can navigate to all the user’s logs data. You can view their arrival and Leaving time as well. Furthermore, It has more functions to filter your logs by user, date, arrival time, leaving time, and filter by different departments, etc. Hence, you can also export those data to excel.
  Hardware Components Required
  Software Required with Download Links
  Technology Used in RFID attendance System Using NodeMCU
  Here we are listing all the major required software components for this project to develop the user interface.
  - Embedded C: All the hardware interface coding has been done in embedded C Language.
  - PHP: All the Logics and web interface is written in PHP Language.
  - MYSQL: For database, MYSQL Database is used.
  - Apache 2: To run the web interface over the Apache 2 server.
  - Javascript and CSS: To Style web Interface with animation and validate the form.
  RFID Based Attendance System Network Topology
  This is the simple network topology designed to run this project over a Local Area Network. The Project Device and Computer server are connected to the same network through WiFi.
  Now before getting started with this project, let’s learn What is RFID? with its specifications and Features.
  RFID RC522 Module
  What is RFID RC522 Module?
  At first, let’s learn a little bit about RFID. RFID is the short form of Radio Frequency Identification. RFID modules use electromagnetic fields for transferring data between the card and the reader. Different RFID tags are attached to objects like Keychain, cards, etc. and whenever we place that object in front of the RFID reader, the reader reads that tags. The next benefit of RFID is that it doesn’t require to be in a straight line to get detected. Unlike a barcode, in RFID there’s no such restriction. So, here are some features of RFID RC522.
  Features:
  –
  Specifications & Pin Details
  The simple specifications of RC522 module from left to right first pins are as follows:
  Pin Name Details 1. 3.3V +3.3V Power Supply 2. RST Reset 3. GND Ground Pin 4. IRO Not Connected 5. MISO Serial Communication 6. MOSI Serial Communication 7. SCK TX/RX with ESP8266 8. SDA TX/RX with ESP8266
  Interfacing RFID RC522 with NodeMcu ESP8266 Module
  NodeMCU ESP8266/ESP12E RFID MFRC522 / RC522
  D2 <———-> SDA/SS
  D5 <———-> SCK
  D7 <———-> MOSI
  D6 <———-> MISO
  GND <———-> GND
  D1 <———-> RST
  3V/3V3 <———-> 3.3V
  How to run a server?
  Actually, we can Deploy this PHP Web App on Hosting Server as well. But, you will need Public IP from Your Broadband connections to send data to the hosting server.
  However, we are using the XAMPP server. It can be used both in Windows and Linux. Basically, Ubuntu users can use LAMP it’s better than XAMPP. But, I am using Windows so I am going to use the XAMPP server. So you can download the XAMPP server from this link.
  Deploying our PHP Web App
  - Start your Mysql and Apache from XAMPP Control Panel.
  - Download the PHP web app and the Arduino IDE Program code.
  - Extract the file.
  - Copy the rfidattendance folder (Main Project folder).
  - Paste the folder in C:\>xampp/htdocs/ folder.
  Now let’s connect the database to the RFID attendance system.
  - Open the browser and go to the URL “”
  - Then click on the database tab.
  - Create a database name “rfidattendance” and then click on the import tab.
  - Click on the browse file and then choose the “rfidattendance.sql” file located inside the rfidattendance folder.
  - Click on Go.
  After creating a database, open a browser and go to the URL “”. Now, the admin login panel will be displayed.
  - Enter the admin email and password to enter the system.
  - The default admin credentials is: email= [email protected], and password= 123.
  Setting Up Arduino IDE for NodeMCU ESP8266
  We need to add the esp8266 board to our Arduino IDE. Open up your IDE then go to “File -> Preferences” or simply hit “Ctrl + comma”.
  Paste in additional board manager URLs.
  Go to “Tools -> Board -> Boards Manager” search and install esp8266.
  Selecting Port and Board.
  Install the MFRC522 library to your Arduino Libraries folder – Download RFID Library
  Program/Sketch Code
  //*******************************libraries******************************** //RFID----------------------------- #include <SPI.h> #include <MFRC522.h> //NodeMCU-------------------------- #include <ESP8266WiFi.h> #include <ESP8266HTTPClient.h> //************************************************************************ #define SS_PIN D2 //D2 #define RST_PIN D1 //D1 //************************************************************************ MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance. //************************************************************************ /* Set these to your desired credentials. */ const char *ssid = "Alsan Air WiFi 4"; const char *password = "[email protected]"; const char* device_token = "2c4f3c61aa79d533"; //************************************************************************ String URL = ""; //computer IP or the server domain String getData, Link; String OldCardID = ""; unsigned long previousMillis = 0; //************************************************************************ void setup() { delay(1000); Serial.begin(115200); SPI.begin(); // Init SPI bus mfrc522.PCD_Init(); // Init MFRC522 card //--------------------------------------------- connectToWiFi(); } //************************************************************************ void loop() { //check if there's a connection to Wi-Fi or not if(!WiFi.isConnected()){ connectToWiFi(); //Retry to connect to Wi-Fi } //--------------------------------------------- if (millis() - previousMillis >= 15000) { previousMillis = millis(); OldCardID=""; } delay(50); //--------------------------------------------- //look for new card if ( ! mfrc522.PICC_IsNewCardPresent()) { return;//got to start of loop if there is no card present } // Select one of the cards if ( ! mfrc522.PICC_ReadCardSerial()) { return;//if read card serial(0) returns 1, the uid struct contians the ID of the read card. } String CardID =""; for (byte i = 0; i < mfrc522.uid.size; i++) { CardID += mfrc522.uid.uidByte[i]; } //--------------------------------------------- if( CardID == OldCardID ){ return; } else{ OldCardID = CardID; } //--------------------------------------------- // Serial.println(CardID); SendCardID(CardID); delay(1000); } //***********); } //=======================================================================
  Program Code Explanation
  Include RFID Library
  #include <SPI.h> #include <MFRC522.h>
  Include NodeMCU ESP8266 Library files.
  #include <ESP8266WiFi.h> #include <ESP8266HTTPClient.h>
  Define RFID MF-RC522 Module Pin.
  #define SS_PIN D2 //D2 #define RST_PIN D1 //D1
  Create MFRC522 instance.
  MFRC522 mfrc522(SS_PIN, RST_PIN);
  Set your desired WiFi credentials.
  const char *ssid = "Alsan Air WiFi 4"; const char *password = "[email protected]";
  Copy the Device token from devices section and paste it over here.
  const char* device_token = "2c4f3c61aa79d533";
  Place your computer IP or the server domain.
  String URL = "";
  Init SPI bus and MFRC522 card
  SPI.begin(); mfrc522.PCD_Init();
  check if there’s a connection to Wi-Fi or not.
  if(!WiFi.isConnected())
  Retry to connect to Wi-Fi
  connectToWiFi();
  look for new card
  if ( ! mfrc522.PICC_IsNewCardPresent()) {
  go to start of loop if there is no card present
  if ( ! mfrc522.PICC_IsNewCardPresent()) { return;
  Select one of the cards. If read card serial(0) returns 1, the UID struct contains the ID of the read card.
  if ( ! mfrc522.PICC_ReadCardSerial()) { return;); }
  Video Tutorial of RFID Based Attendance System
  Thank You so much Electronics Tech Channel for this awesome Project. Please help him to grow his channel. Your one subscribe can motivate him to create more projects like this on future.
  Conclusion
  Finally, we have completed the RFID based Attendance system using NodeMCU with a Website and Database. We hope you found this project useful! Drop a comment below if you have any doubts or queries. We’ll do our best to answer your questions
  161 Comments
  Hi I ran everything as described in the guide but, when I pass the rfid card in front of the reader the code is not transmitted to the ‘getdata.php’ script I tried multiple strings in ‘string url’ but without success (wireshark sees the transmission and the answer ), I have no more ideas, thanks
  RFID is SPI module sometimes loose connection to the NodeMCU cause the Problem. Next Thing Make sure you have updated your IPV4 address in the code. Try Running Some RFID example code in Arduino IDE. To make sure your RFID don’t have any hardware issue.
  Hi Alsan, I tried with another rfid reader connected to a wemos D1 R1 but I get the same result on screen I don’t see any card code, but with wireshark I see that as soon as I pass the card on the reader there is a transmission to the ip of the machine server, I think ipv4 is right, I tried both with and with ddns address and port but nothing happens, should I read the card code in serial mode or not? thanks for assistance
  May be some firewall in the OS is blocking incoming connection to web server..
  I have tested it with NodeMCU V3 and ESP32 board. It’s working fine. It would be great if I can help you out. Due to lockdown my all testing equipment are left at hostel room. If I had one i would test it and figure out the actual issue..
  hi Alsan, I solved it, it was a simple problem: I just had to adapt the Sda / ss and Rst pins in the arduino sketc, now everything works perfectly even if I don’t know how to change the Admin password since it is encrypted in the db, thanks and sorry for the time I made you lose, congratulations for the work
  Great to know that you really love this project ?
  hi great Alsan, one last thing, rfid attendance is now operational ? but I would like to change the admin password to make it stronger but I don’t know how to do it, plus if I press on ‘recover password’ or ‘reset password’ it gives me an error because the link of the button leads to reset_pass.php that does not exist, how can I solve it if possible? thanks and good day
  We are working on it. To add reset Password page. I will let you know when it’s done ?
  Hi Alsan
  When i go to serial monitor to check if is running doesn´t appear nothing and when i press RST this appear “⸮⸮⸮⸮/⸮⸮⸮⸮⸮⸮” why is this happening?
  Check your SS and RST pin on Program Sketch. There may be pin defined error.
  Hello Alsan.
  Couldn’t find reset_pass.php file. How to add new admin?. I tried to insert new admin in SQL but the password always wrong. Thanks
  Reset password is not working for now because the password is encoded we will fix it on another release ?
  Hi, thank you for your project. I found and error (in my case) wherein the user_logs are not saving in mysql,
  and found that line 6 $t = date(“H:i:sa”); is at am/pm, changed it to $t = date(“H:i:s”); and the project worked fine.
  Thanks Danilo Gonzales, Your suggestions is valuable for other users.
  What I meant was there was an error in line 6 of your getdata.php file.
  But it’s working for us without any changes. Still thanks for your reply
  wow! I really like this project now working with my project hope will be successfully completed thanks for this awesome IoT project
  Hi there I have some error message during uploading to my NodeMCU board : Invalid library found in C:\Program Files (x86)\Arduino\libraries\examples: no headers files (.h) found in C:\Program Files (x86)\Arduino\libraries\examples
  Invalid library found in C:\Program Files (x86)\Arduino\libraries\doc: no headers files (.h) found in C:\Program Files (x86)\Arduino\libraries\doc
  Please help Thank you
  Install all the Library header file mentioned on a code. You can also get download link in this post
  Thank you very much I spent several hours looking for the error, I also have LAMP !!!
  Great!!!! Danke. ?
  Francesco, I have the same problem just like you so can you please send me the part of the code which you edited…?
  Try from this link:
  hello, when i enter admin email and password its giving me database error what should i do
  while entering admin email and password i am getting database error what should i do please help asap
  That means you have not followed all the steps. Default admin credentials are: [email protected] password:123
  Hello Alsan, in the part of arduino code, at the moment that I read the target, show me the rfid number but appears a message: Not found!, and didnt sent to the database.
  Check your URL or IP address. It should be like this:……do not use https.
  Hello Alsan, let me know how to get the device token? I know this is a stupid question because i have just learned arduino for a month.
  Please read all the instructions provided. You can get device token from Devices>Device UID section of website
  Ciao Alsan avete lavorato nella pagina reset_pass.php
  Reset password from web interface is not available but you can do it from mySQL database.
  Alsan ti ringrazio comunque la password da mySQL non si imposta. Magari se hai il file reset_pass.php posso dare un okkiata io per la funzione. Il software è bellissimo sensa l’impostazione della password perde il suo valore. Fammi sapere grazie.
  You can easily change the password from the MYSQL Database. You have to change the Field type to MD5 from txt. because it is in an encrypted form.
  Hi Alsan, possible to use windows 10 64bit?
  Yes, it works with both 64bit and 32bit
  Alsan forse sblagli crittografata non è MD5 ed è impossibile sostituirla. Controlla fai le prove in piu’ ti lascio un link
  dove puoi cittografare on-line.
  123 non corrisponde a questa Pass MD5 $2y$10$89uX3LBy4mlU/DcBveQ1l.32nSianDP/E1MfUh.Z.6B4Z0ql3y7PK
  123 corrisponde a 202cb962ac59075b964b07152d234b70 in MD5
  Puoi chiarirmi la mente grazie.
  Risolto reset_pass.php
  hello Alsan ,Thank you for such good project,
  I am having error while login,
  the login and password i try to enter/change , but i didnt get any solution.
  it is keep showing data base error. Kindly share any video or anything for the solution, Thank you
  You can change it from mySQL database admin tables
  But, make sure you have choosen MD5 format on password field before applying it.
  hello, how can i read the current timein and timout time in this project?
  You can read timein and Time out from user log
  HI ALSAN, WHEN I WANT TO ADD DEVICE APPEARS ERROR = “FATAL ERROR: CALL TO UNDEFINED FUNCTION RANDOM_BYTE” AT DEVICE_CONFIG.PHP. PLEASE EXPLANATION. THANK YOU
  Please download the file again and start from beginning. Sometimes it happens while downloading files.
  Hiya,
  Thanks for this great project, It is working fine for me (I am at development stage to setup up a rfid attendance logging system for my school).
  Now, I got my hand on a stock of 125Khz rfid cards,and RDM6300 modules, as my coding skills are not that strong, can you show me the right direction to adapt your code?
  Thanks!
  Hi can u show me were to get the device UID, because each tine i try to add a device noting Happens
  First change the device mode to enrollment mode then scan the UID. Under add device section you can get the UID of scanned card
  hi alsan !
  i got i problem with the project
  when i tried to save attendance it’s not save data on user_log table !
  hello how to configure my time in and out according to my country ?
  You can change time zone by editing getdata.php file
  Change this line according to your country zone.
  date_default_timezone_set(‘Asia/Damascus’);
  Sorry for late reply ?
  Hello Alsan. My NodeMCU wont connect to my wifi network. What could be the problem?
  Try creating a Hotspot from PC or Mobile. It may solve your issue
  hellow, i have problem with serial monitor
  Invalid Device!
  Sending the Card ID
  200
  3417123652
  Invalid Device!
  Hello Alsan , From my esp8266 i am not able to connect to the php server , i am getting -1 response from server .i did everything from above steps i am using xampp server. When i send the send the same get request that you are sending from sendCard function from postman it works. What must me the problem and how should i solve it
  Use http instead of https in url
  I have mutiple rfid cards. Which device token do i use in the arduino code? Plus i am still having trouble capturing the cards on the rfid and displaying the data on the php web app. Do i first create a new device, take the token number and put it in the arduino code, scan the card then change the mode to attendance so that the web app registers the card uid?
  Yes ?
  hoi all if i go to than it said Not Found
  The requested URL was not found on this server.
  Apache/2.4.46 (Win64) OpenSSL/1.1.1g PHP/7.2.34 Server at localhost Port 80
  What did i wrong?
  Run server first
  @Alsan, I am almost giving up:(… The RFID wont simply capture the tag details and send them to the php web app. I am using your amazing knowledge to do my final year project and I am stuck and do not know where I am going wrong. I really need your help
  i got a website now thank you.
  If compile i got the next
  GPIO was not declared in this scope
  mooirfid_met_interface:9:17: error: ‘GPIO’ was not declared in this scope
  #define SS_PIN GPIO D2 //D2
  ^
  C:\Users\hanss\Documents\Arduino\mooirfid_met_interface\mooirfid_met_interface.ino:12:17: note: in expansion of macro ‘SS_PIN’
  MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance.
  ^
  mooirfid_met_interface:10:17: error: ‘GPIO’ was not declared in this scope
  #define RST_PIN GPIO D1 //D1
  ^
  C:\Users\hanss\Documents\Arduino\mooirfid_met_interface\mooirfid_met_interface.ino:12:25: note: in expansion of macro ‘RST_PIN’
  MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance.
  ^
  exit status 1
  ‘GPIO’ was not declared in this scope
  #define SS_PIN GPIO D2 //D2 (was first the same error but now good i think)
  #define RST_PIN GPIO D1 //D1 (is now in error)
  ============================================================
  Bellow is original code from you
  #define SS_PIN D2 //D2
  #define RST_PIN D1 //D1
  //#define SS_PIN D2 //D2
  //#define RST_PIN D1 //D1
  #define RST_PIN 15 // RST-PIN for RC522 – RFID – SPI – Modul GPIO15
  #define SS_PIN 2 // SDA-PIN for RC522 – RFID – SPI – Modul GPIO2
  No more errors strange
  Great
  @Alsan.. I am only able to capture one card.. I have multiple. How do I do that?
  You can add multiple cards with same procedure
  Thanks for the reply.I was able to register the cards but when I scan them, I do not get the log times
  @Alsan I was able to register the cards but when I scan them, I do not get the log times. What could be the problem?
  Are you using hosting or Local server?
  @Alsan
  local server
  What gonna change when we use an arduino otherwise ESP32 module..
  hi, alsan, great project, i’m trying it on a web server on nodemcu everything works i read the cards but when i go to the web page to insert a user it doesn’t read the cards
  thanks
  If you are using Hosting then you should go with HTTPS GET and POST request instead of HTTP. It is only for LocalHost.
  Also, check the status on the serial monitor. To post the data to the webserver it should show the status 200.
  ok thanks, in any case everything is ok locally beautiful project, I would like to insert a buzzer, where I should change https and Post thanks
  You can add buzzer. Just take a buzzer example code and integrate it on the place where you want sound
  Hi Alsan,
  If i want to add a user and fill in the credentials than i see then following error There’s no selected Card!
  Please will you help me?
  First change the Device mode to Enrollment mode
  All done now
  I am using localhost and my my serial monitor shows 200. Despite that, it still doesnt send the data to the php web app. Is there a way I can send you the images so that you can see?
  Those are the images of the serial monitor, the manager users page and user log page..I still dont know why the user logs wont show
  I think your firewall is blocking something which interface while sending data to PHP
  One thing…. Did you change the device mode to Attendance mode? Before reading logs. I think you have missed this step. Here we have two modes Enrollment is used for registering user and Attendance mode for taking Attendance.
  I have changed the mode to attendace but nothing.
  I changed the modes to attendance but no data shows on the webpage.
  @Alsan I was able to register the cards but when I scan them, I do not get the log times. What could be the problem? Off course that’s excellent project . I’m run in host not local server
  You should edit the code by replacing HTTP POST and GET Request with HTTPS POST and GET request. This code is only supported for local websever.
  Grear work ! But can use MQTT protocol instead of http in this?? If yes can you explain in brief as how to use
  Great work! But can we use MQTT protocol instead of http in this project ? If yes then can you please explain as how to use.
  @Alsan many thanks I’ll test with these. The best for you for 2021 and family
  Hello. Can i use this database with arduino mega + ethernet shield?
  Yes you can but you need to add and remove some library
  bonjour j’ai essayé d’accédez à l’ URL « http: // localhost / rfidattenddance /». mais il fonctionne pas il m’affiché error 404
  English please 🙃
  J’ai meme problème s’il vous plait comment tu l’ai résoudre
  What does “DE.” mean in your php website?
  i cannot register new user the system because i get -1 whenever i tag my card. I have also tried removing the http from the url and still the same. I am using the enrollment option to register it is not working. Anyone can help?
  Hi sir may u teach me how you make that website & design it?
  Hi Alsan Parajuli, the password you suggest is not 123. Is impossible for me to enter and change de password from database also using MD5. What can I do?
  Hello, first of all, thank you for sharing this project!
  I have done the project successfully but when I change the timezone from Damascus to Manila, it doesn’t seem to appear on even though it appears on the database. What could be the problem?
  Thank you!
  Hello, first of all, thank you for sharing this project!
  I have done the project successfully. However, changing the timezone from Damascus to Manila seems to break as it won’t list the logs but the phpmyadmin database sees it. Any solution to this?
  Thank you!
  hi Alsan,can u give me library for use arduino mega + esp8266 connnect this database
  Same library will work
  tq,can give me link download library,some library i cannt find
  Plz help me.i cannot compile n uploade tp Arduino mega + esp8266
  Some library not found in Arduino mega
  hello sir mein try kar raha hun aapki encrypted technique ko samajhne ki main sare comments ko pada but mujhe lag raha hai ki yah md5 main encrypted nahin hai kya bata sakte hai . Ki aapne konsa algorithm use kiya hai..(Which algorithm have you used to encrypt the password? ) Which folder have you saved in and which is the code of the line, please tell
  Hi brother,
  Can you post the link to the needed library because is hard to get it work with the good ones.
  Please
  please reply sir
  i am unable to read card can you help me out in that i even read comments but not able to do it
  Hello … I just follow the procedures with photo buy i was stock in finding rfidattendance.sql but instead its .opt
  I cant find the right file for (ESP8266WiFi.h) ESP8266WiFi.h: No such file or directory
  good day I cant find a right file for this issue ESP8266WiFi.h: No such file or directory
  First install ESP8266 board manager
  Hi Alsan, when I tried to login it shows me fatal error…can you help ?
  This is the error it shows :
  Hey Alsan. When I login it shows me fatal error. Can you help
  here is the error link :
  please edit http server. (real server)
  Hi Alsan,
  I have tried everything, but when I try to add a user to manage user () I keep getting the error: There’s no selected Card! ”
  When I start NodeMCU_RFIDv2.0 in arduino, and hold a card in front of the reader, I see in the serial monitor:
  Connecting to Ziggo
  …….
  Connected
  IP address: 192.168.178.61
  Sending the Card ID
  -1
  2019817543
  So that seems to be working.
  I connected D2 from ESP12F to SDA / SS
  and D1 to RST so that seems to match the sketch NodeMCU_RFIDv2.0
  I Use in the sketch
  String URL = “http: //localhost/rfidattendance/getdata.php”; // computer IP or the server domain
  I use Wemos D1 (ESP-12F) and RC522
  thanks in advance for your time and wonderful script.
  Stay healthy.
  Use IP address instead of localhost
  Also change the device mode to enrollment mode to add user and the turn it back to attendance mode for taking attendance
  I forgot to say that I created a device and entered the relevant UID code in the sketch:
  const char * device_token = “870230263fa323f2”;
  Unfortunately, I really don’t know what to do anymore.
  Thanks for your quick response.
  I have the device mode on enrollment
  Same problem when using:
  String URL = “”;
  String URL = “”;
  String URL = “”;
  String URL = “”;
  How to find the propper IP adress?
  Type ipconfig in command prompt. Then check your ipv4 address
  IT’s WORKING,
  Stupid me.
  Indeed it was the IP adres.
  I found the correct adres by using ipconfing in command line from windows.
  It seemed that IPv4 Address was 192.168.178.21
  Now I can continue.
  Cheers
  Good luck 🤞
  Hello Alsan ,
  I`m facing a issue “call to ‘HTTPClient’::begin declared with attribute error:obsolete API,use ::begin(WifiClient,url)”
  can you pls tell whats the issue ?
  Hello Alsan, we’re having a trouble in reading a card, All was set up and connected, in Arduino GUI, it was displayed as connected, but the RFID doesn’t read or doesn’t have any feed back in arduino GUI
  Can I change time that display on webserver ?
  Yes, you can just edit the time zone from getdata.php file
  how can I solve this error
  rfid:78:15: error: call to ‘HTTPClient::begin’ declared with attribute error: obsolete API, use ::begin(WiFiClient, url)
  78 | http.begin(Link); //initiate HTTP request //Specify content-type header
  | ~~~~~~~~~~^~~~~~
  exit status 1
  call to ‘HTTPClient::begin’ declared with attribute error: obsolete API, use ::begin(WiFiClient, url)
  Thanks u very much !!
  How can I add a card I can’t find this.. Please explain.?
  How can I add a card I can’t find this.. Please explain.?
  Hi @Alsan!
  I have a problem.
  When wipe card , i see on serial monitor
  “Sending the Card ID
  -1
  2019817563”
  Server not respone. Could you to help me? Please!
  Hi, I have also the same problem as @Dlee
  what i see on serial monitor is
  Sending the Card ID
  -1
  1035598180
  and that it.. nothing appear on website… I am unable to add card… also device mode is enrollment
  and I have also check ipv4 by ipconfig
  Sir I really like this project. Thank you very much. I have a problem, is there a way to delete user logs?
  Hi Alsan Parajuli
  Works as a charme i only have 1 question is the a posibility to generate the output in the monitor to a lcd2 ore something else?
  Yes possible
  hold the card to the reader in Manage users and u see the card.
  You must first insert the Tag or card
  If you use a password delete it or change it in the db connect
  Where to find a example ore how to do?
  Oke where to find? Example?
  can we get asp.net code for the same
  Hello,
  I had this problem when I surfed on this link:.
  Object not found!
  The requested URL could not be found on this server. If you typed the URL by hand, please check the spelling and try again.
  Could you please clarify the problem?
  Thank you
  the string “Card_uid” in the Sketch Code should be in lowercase based on the getdata.php
  the string “Card_uid” in the Sketch Code should be in lowercase based on the getdata.php script.
  change the ssid and password in the Program Sketch into the SSID your using.
  Can this be run on raspberry pi localhost?
  How did you doing? Thanks.
  How??
  Has there been any update on the password reset? MD5 is not the correct encryption. A hash was used to create the “123” password. If you could tell us what hash was used, maybe we could help write the reset_pass.php…
  I tried to leave a comment but it did not post ???
  Has there been any update on the password reset page?
  Encrypting with MD5 in MySQL is not the correct encryption that this program looks for. The “123” password looks to be encrypted with password_hash() php function using a specific hash or cost. Perhaps if you coould let us know what the exact encryption was, we could possibly create the reset_pass.php file ourselves.
  I have created the files required to have the reset_pass.php file that works. Click the file download which should take you to the github repository then look for my fork.
  It seems that getting to my github fork from here is more difficult that I thought. So…..
  Hi alson. May i ask question? Everything works fine but i cannot add new devices to get uid token. I already click new device button but nothing appeared. Do you know how to counter this problem. Hope you can help me. Thank youu