# souvik-dey-2029/smoke-detector_system architecture

> Architecture diagram of the GitHub repository souvik-dey-2029/smoke-detector_system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/souvik-dey-2029/smoke-detector_system
- Repository: https://github.com/souvik-dey-2029/smoke-detector_system

## Overview

This is an Arduino smoke and gas detector. The documented workflow is ambient air sensing, threshold-based hazard detection, then audio and visual alerts. The README names the hardware and behavior, but no source excerpts were provided, so the sketch’s internal implementation and exact call relationships cannot be verified; the graph shows only documented relationships.

Main entry points: [`smoke_detector_system1.ino`](https://github.com/souvik-dey-2029/smoke-detector_system/blob/main/smoke_detector_system1.ino) (Smoke detection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_detection["Detection"]
  node_gas_sensor["Gas sensor"]
  node_detector["Smoke detection"]
end

subgraph group_alerts["Alert outputs"]
  node_buzzer["Buzzer"]
  node_leds["LED indicators"]
  node_lcd["16×2 LCD"]
end

node_air(("Ambient air"))

node_air -->|"is sensed"| node_gas_sensor
node_gas_sensor -->|"provides readings"| node_detector
node_detector -->|"triggers alarm"| node_buzzer
node_detector -->|"activates indicators"| node_leds
node_detector -->|"displays alerts"| node_lcd

click node_detector "https://github.com/souvik-dey-2029/smoke-detector_system/blob/main/smoke_detector_system1.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_gas_sensor,node_detector toneBlue
class node_buzzer,node_leds,node_lcd toneAmber
class node_air toneIndigo
```

## Components

### Detection

- **Gas sensor**
- [Smoke detection](https://github.com/souvik-dey-2029/smoke-detector_system/blob/main/smoke_detector_system1.ino): `smoke_detector_system1.ino`

### Alert outputs

- **Buzzer**
- **LED indicators**
- **16×2 LCD**

### Other components

- **Ambient air**

## Connections

- Ambient air → Gas sensor: is sensed (evidence: `README.md`)
- Gas sensor → Smoke detection: provides readings (evidence: `README.md`)
- Smoke detection → Buzzer: triggers alarm (evidence: `README.md`)
- Smoke detection → LED indicators: activates indicators (evidence: `README.md`)
- Smoke detection → 16×2 LCD: displays alerts (evidence: `README.md`)
