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

Wiring Diagram

SEN0188 Fingerprint Sensor with 5 Fingerprint Projects Connection 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.
SEN0188 Fingerprint Sensor with 5 Fingerprint Projects Codes download

Result

After you finish seting its parameter and make sure the connection is right, you will get this display in the serial monitor:

SEN0188 Fingerprint Sensor with 5 Fingerprint Projects Codes download

Don't move finger until you get "Remove finger":

SEN0188 Fingerprint Sensor with 5 Fingerprint Projects Put your finger on the fingerprint module

Don't move finger until you see "Remove finger":

SEN0188 Fingerprint Sensor with 5 Fingerprint Projects Move your 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":

SEN0188 Fingerprint Sensor with 5 Fingerprint Projects Confirm your fingerprint again

Stored successfully:

SEN0188 Fingerprint Sensor with 5 Fingerprint Projects Store successfully and you can input to the next finger again

Additional Information

SEN0188 Fingerprint Sensor with 5 Fingerprint Projects Codes download SEN0188 Fingerprint Sensor with 5 Fingerprint Projects Set mode SEN0188 Fingerprint Sensor with 5 Fingerprint Projects Enter your fingerprint ID

Was this article helpful?

TOP