Example Code for Arduino-Fingerprint Enrollment
Last revision 2026/01/15
This tutorial will teach you how to use the fingerprint module to input the fingerprint.
Hardware Preparation
- UNO x1
- Fingerprint Sensor x1
- Fingerprint Sensor Cable x1
Software Preparation
- Arduino IDE V1.6.5 Click to Download Arduino IDE
- Fingerprint Library: Click to download library files
- Arduino Library Installation Tutorial
Wiring Diagram
| Fingerprint Pin | UNO Pin |
|---|---|
| VIN | 5V |
| TD | 2 (Software Serial RX) |
| RD | 3 (Software Serial TX) |
| GND | GND |
Other Preparation Work
- Download and install the Fingerprint Library.
- Open Fingerprint Library sample code -> fingerprint -> examples -> enroll.ino.
- Connect UNO and fingerprint module according to the connection diagram.
- If you want to clear all previous saved fingerprint template, please change the number which arrows point 0 to 1, if you don't want to clear all fingerprint data. just keep it "0" in the code.
- Select the Board and Port.
- Upload.
- Open Serial monitor.
- Set Serial baud rate 9600.
- No line ending.
- Check Autoscroll.
- Set the NL mode to the NL+CR.
- Enter your fingerprint ID in the serial monitor and then click the "Send" button.
Sample Code
- Open Fingerprint Library sample code -> fingerprint -> examples -> enroll.ino.
Result
After you finish seting its parameter and make sure the connection is right, you will get this display in the serial monitor:
Don't move finger until you get "Remove finger":
Don't move finger until you see "Remove finger":
It will tell you to enter the fingerprint again, put the same finger on the module again. Don't move finger until you see "Remove finger":
Stored successfully:
Additional Information

Was this article helpful?
