# coderkirt/smart-iot-security-system architecture

> Architecture diagram of the GitHub repository coderkirt/smart-iot-security-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/coderkirt/smart-iot-security-system
- Repository: https://github.com/coderkirt/smart-iot-security-system

## Overview

This is a small Arduino-based IoT security project. Its documented workflow combines laser/LDR beam-break detection with PIR human detection, then activates a buzzer and triggers ESP32-CAM image capture. The README also describes app-based remote alerts as a possible extension, not a confirmed implemented feature. No source excerpts were provided, so the relationships below rely on the README; the sketch is identified only as the available implementation path.

Main entry points: [`laser_security_v7/laser_security_v7.ino`](https://github.com/coderkirt/smart-iot-security-system/blob/main/laser_security_v7/laser_security_v7.ino) (NodeMCU controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_sensing["Intrusion sensing"]
  node_laser_ldr["Laser and LDR"]
  node_pir["PIR sensor"]
  node_controller["NodeMCU controller"]
end

subgraph group_response["Alarm and capture"]
  node_buzzer["Buzzer"]
  node_camera["ESP32-CAM"]
  node_app_alerts["Remote alert app"]
end

node_intruder(("Possible intruder"))

node_intruder -->|"may break beam"| node_laser_ldr
node_laser_ldr -->|"signals beam break"| node_controller
node_intruder -->|"triggers motion detection"| node_pir
node_pir -->|"checks human presence"| node_controller
node_controller -->|"activates on both conditions"| node_buzzer
node_controller -->|"triggers image capture"| node_camera
node_controller -.->|"could extend to"| node_app_alerts

click node_controller "https://github.com/coderkirt/smart-iot-security-system/blob/main/laser_security_v7/laser_security_v7.ino"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_laser_ldr,node_pir,node_controller toneBlue
class node_buzzer,node_camera,node_app_alerts toneAmber
class node_intruder toneIndigo
```

## Components

### Intrusion sensing

- **Laser and LDR**
- **PIR sensor**
- [NodeMCU controller](https://github.com/coderkirt/smart-iot-security-system/blob/main/laser_security_v7/laser_security_v7.ino): `laser_security_v7/laser_security_v7.ino`

### Alarm and capture

- **Buzzer**
- **ESP32-CAM**
- **Remote alert app**

### Other components

- **Possible intruder**

## Connections

- Possible intruder → Laser and LDR: may break beam (evidence: `README.txt`)
- Laser and LDR → NodeMCU controller: signals beam break (evidence: `README.txt`)
- Possible intruder → PIR sensor: triggers motion detection (evidence: `README.txt`)
- PIR sensor → NodeMCU controller: checks human presence (evidence: `README.txt`)
- NodeMCU controller → Buzzer: activates on both conditions (evidence: `README.txt`)
- NodeMCU controller → ESP32-CAM: triggers image capture (evidence: `README.txt`)
- NodeMCU controller → Remote alert app: could extend to (evidence: `README.txt`)
