Fingerprint Sensor Example Guide


The Fingerprint Sensor Module is an easy to use fingerprint reader sensor module that can easily be integrated in Arduino and microcontroller projects. This module is good project feature when you want to implement fingerprint security or attendance monitoring projects. In this guide we will show how to quickly use the fingerprint sensor to interface in the Arduino project.

Parts List

For this quickstart guide, we will need the following materials:


You will need Arduino Software version 1.8.0 and above or download the latest Arduino Software from here.

You also need to download the latest Arduino Fingerprint Sensor library by Adafruit from here, find and Click “Clone or download” then Click “Download ZIP”. Locate the downloaded zip file, copy it and paste it in your Arduino “libraries” folder (Example: C:\arduino-1.8.9\libraries) paste the downloaded zip file in the “libraries” folder and extract the folder from the zip file. Now rename the extracted folder to “Adafruit-Fingerprint-Sensor-Library”.

Close All the opened Arduino IDE, then re open the Arduino IDE.


The fingerprint sensor will only start to light up when you run the example code later on Procedure 1 enroll.

1) Connect the hardware as shown in the picture. This connection will be used for all the example steps.

Fingerprint Sensor pin                                   Arduino Pin
Red                                        to                            5V
Black                                      to                 GND (Ground)
Green                                     to                    Digital Pin 2
White                                      to                   Digital Pin 3

You may need to wire the fingerprint sensor wires to a decent male ended connecting wires in order to ensure proper connection from the fingerprint to the Arduino board.













Procedure 1: Enroll or Save a fingerprint

For this part, we will enroll or save a fingerprint. Open your Arduino IDE, go to File > Examples > Adafruit Fingerprint Sensor Library > enroll

Compile and Upload the code to your Arduino board. Open your Serial Monitor at 9600 Baud. Type any number on the box above to save a fingerprint on its designated number priority.

Try enrolling 5 or more fingerprints at different number. After enrolling, the fingerprints have been successfully saved with its own designated number. We will now scan and check the fingerprints by running the “fingerprint” example code.

Procedure 2: Scan and read the saved fingerprints

Open your Arduino IDE, go to File > Examples > Adafruit Fingerprint Sensor Library > fingerprintCompile and Upload the code to your Arduino board.

Open up the serial monitor at 9600 baud and when prompted to place a finger, place your finger on the Sensor and it should read and reveal the fingerprint that was already enrolled from the previous exercise.

The ‘confidence’ is a score number (from 0 to 255) that indicates how good of a match the print is, higher is better. Note that if it matches at all, that means the sensor is pretty confident so you don’t have to pay attention to the confidence number unless it makes sense for high security applications. If you want to have a more detailed report, change the loop() to run getFingerprintID() instead of getFingerprintIDez() – that will give you a detailed report of exactly what the sensor is detecting at each point of the search process. 


credits: image, code, library and instructions are based out of Adafruit manual, rearranged for shorter an easier implementation.