Example Code for Arduino-Fingerprint Recognition
Last revision 2026/01/15
This tutorial will teach you how to use the fingerprint module to read 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
- Similar to the fingerprint input, download the Exemples -> fingerprint.ino to UNO.
- Set Board and Port.
- Open Serial Monitor.
Sample Code
- Open Fingerprint Library sample code -> fingerprint -> examples -> fingerprint.ino.
Result
If the fingerprint module is connect successful, it will always prompt you to press your fingers:
Press your finger on the screen and do not move, if your fingerprints has been in the template, it will appear as shown:
Was this article helpful?
