Build and learn

June 6, 2025

# 5 ways to build smarter access control systems with Viam

It is easy to automate and customize access with our modular platform

Joyce Lin  
Head of Developer Relations

## Here are five practical ways to build smarter access control systems with Viam:

## **1. Facial recognition with a webcam**

Enable contactless access to shared spaces using computer vision and facial recognition. This solution is ideal for doors, shared equipment lockers, or conference rooms.

**💡 Try it yourself**: [Face identification for access control with Raspberry Pi and Camera](https://codelabs.viam.com/guide/securibot/index.html)

Securibot in action

## **2. Fingerprint sensor with servo**

Use a biometric fingerprint reader paired with a servo-powered latch to control access to a physical container, drawer, or even a garage door. This method provides secure, local-only control without needing an internet connection.

**💡 Try it yourself**: [Enable physical access using a fingerprint sensor](https://codelabs.viam.com/guide/fingerprint/index.html)

A biometric fingerprint reader you can use with Viam

## **3. Smart lock control via serial commands**

Looking for a way to integrate with off-the-shelf smart locks? This approach uses a Viam module to send serial commands from Android devices to relays like the [Numato USB relay](https://app.viam.com/module/mcvella/numato-relay-usb-android), making it easy to retrofit existing systems. You can also use Viam’s vision service to trigger unlock actions on a [Yale Lock](https://app.viam.com/module/bill/yale-assure-vision-lock) when specific conditions are met, such as recognizing a face or detecting motion near the door.

## **4. Track lock status with an infrared sensor**

Want to know if your door is locked or unlocked without having to manually check? An IR sensor can detect physical movement or state changes in a door lock mechanism and report back to the Viam platform. Once connected, you can monitor it from the Viam web app, mobile app (iOS or Android), or build your own dashboard using one of [Viam’s SDKs](https://docs.viam.com/dev/reference/sdks/).

**💡 Try it yourself**: [Detect door lock status with an infrared sensor](https://codelabs.viam.com/guide/emily-door-lock/index.html)

An infrared sensor

## **5. Person detection in Home Assistant**

Already using Home Assistant? Extend your smart home setup with Viam’s person detection feature to trigger automations, like unlocking a smart lock when a person is detected, or sending an alert if someone lingers near your door.

**💡 Try it yourself**: [Set up people detection notifications in Home Assistant](https://codelabs.viam.com/guide/home-assistant/index.html)

Notification when a person is detected

## Customize and extend your projects

With Viam, you can mix and match components. For example, swap out a fingerprint sensor for a webcam, change a relay for a smart plug, or [build your own modules for custom behaviors](https://codelabs.viam.com/guide/control-module/index.html). All examples are based on real-world [codelabs](https://codelabs.viam.com/) that you can start building from today. And you can browse other modules in the [Viam registry](https://app.viam.com/registry) for more ideas.

Want to build your own access control solution or integrate Viam into your existing setup? [Request a demo](/content/product/demo-request/index.html), or [join our Discord](https://discord.gg/viam) to chat with our team and community of builders.
