Learn · Build · Explore

Security Projects

Motion detection, alerts, and access monitoring tutorials with PIR sensors, relays, and Wi-Fi notifications.

2 ProjectsClear difficulty labelsSecurity

What this category covers

Motion alerts, RFID access, camera monitoring, and lock-control prototypes with clear safety boundaries. A practical first build is ESP32 Motion Security Alert.

Start here: Begin with a local sensor or card reader, then add network alerts only after local testing is reliable.

Skills you practice

  • PIR detection
  • RFID checks
  • relay safety
  • event logging

Useful components

Related categories

Before you adapt it

  • Learning projects are not certified security systems and should not be the only protection for people or property.
  • Test false positives, missed triggers, and power loss before adding notifications.
  • Keep locks, relays, and door hardware separate from USB breadboard wiring unless properly enclosed.

Learning progression

  1. Read digital inputsStart by understanding stable input states before trusting alerts.
  2. Debounce eventsUse debounce concepts for switches, doors, and repeated event triggers.
  3. Detect motionBuild a PIR alert that logs and explains false positives.
  4. Add identity inputMove to RFID only after local event behaviour is reliable.

Choose the right project

  • Motion alertChoose this for PIR warm-up, trigger timing, and notification logic.
  • RFID accessChoose this for card UID checks and safe lock-control boundaries.
  • Camera demoChoose this for local-network viewing, not certified surveillance.
  • Door lockUse this when the lesson includes actuator safety and manual fallback.

Technical reality and troubleshooting

Limits to understand

  • These projects are educational prototypes and not certified alarm, access-control, or surveillance systems.
  • PIR sensors can trigger from heat, sunlight, pets, airflow, and warm-up behaviour.
  • Locks and relays need fail-safe thinking, separate power, and physical fallback before any real doorway use.

Common failure checks

  • PIR triggers constantly: allow warm-up, move it away from heat sources or windows, and log timestamps before changing code.
  • RFID card is not detected: check SPI wiring, antenna distance, tag orientation, and library example output.
  • Relay or lock behaves backward: verify active LOW/HIGH input logic, NO/NC contacts, and the load supply path.

Privacy boundary

← Browse all ESP32 projects