ai-agent

Adafruit Fingerprint Sensor Library

Arduino library for interfacing to the fingerprint sensor in the Adafruit shop
476 stars353 forksC++Updated 3/3/2026100% free · open source
What it does

Lets an Arduino talk to Adafruit’s TTL fingerprint sensor so you can enroll, search, and delete fingerprints in your hardware prototype.

When to use it
  • You need on‑device biometric authentication for a lock, kiosk, or IoT device.
  • You want a low‑cost, offline alternative to cloud‑based face/voice ID.
  • You are building a prototype that must store up to 1,000 fingerprint templates locally.
Ready-to-paste prompt
// Enroll a fingerprint and print its ID
#include <Adafruit_Fingerprint.h>
#include <SoftwareSerial.h>

SoftwareSerial mySerial(2, 3); // RX, TX
Adafruit_Fingerprint finger = Adafruit_Fingerprint(&mySerial);

void setup() {
  Serial.begin(9600);
  finger.begin(57600);
  if (finger.verifyPassword()) Serial.println("Sensor ready");
  else Serial.println("Wrong password");
}

void loop() {
  Serial.println("Place finger to enroll");
  getFingerprintEnroll();
  while (1);
}

uint8_t getFingerprintEnroll() {
  int p = -1;
  Serial.print("Waiting for valid finger...");
  while (p != FINGERPRINT_OK) { p = finger.getImage(); }
  finger.image2Tz(1);
  p = finger.createModel();
  if (p != FINGERPRINT_OK) return p;
  int id = finger.storeModel(1, 0); // store in slot 1
  Serial.print("Stored as ID #"); Serial.println(id);
  return id;
}
Heads up: The sensor only works at 57600 bps and expects 5 V logic; using the default 9600 bps or connecting TX/RX to the wrong pins will cause no response.
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

✅ Light setup

Installs with a command or two; your AI agent can do it for you.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/adafruit-fingerprint-sensor-library && curl -fsSL https://workflowstacks.com/api/skills/adafruit-fingerprint-sensor-library/claude-skill -o ~/.claude/skills/adafruit-fingerprint-sensor-library/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How Adafruit Fingerprint Sensor Library works
Codeflow
Free to inspect

Adafruit Fingerprint Sensor Library is a small C++ project (~900 lines across 2 code files). Setup is light: small project — see the README for how to run it. Last commit 6 months ago, Other license, has a test suite.

Size
Small codebase
~900 lines · 2 code files · 7 min skim
Setup
Light setup
Small project — see the README for how to run it.
Runs on
C++
No API keys detected
C++ 100%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    examples/Leo_passthru/.uno.test.skip
    A worked example — copy this to get going
What's in each folder
examples/Examples you can copy10 files
documentation/Documentation3 files
.github/CI / automation (GitHub Actions)3 files
READMEHas testsDocumentedCI checksExamples includedOther licenseLast update 6 mo ago
Quick Actions
Details
Creator
adafruit
Language
C++
Category
ai-agent
Published
3/19/2012

Are you the creator of this tool? Claim your listing → and earn 85% of every sale.