# atharwa-24/water-leakage-detection-system architecture

> Architecture diagram of the GitHub repository atharwa-24/water-leakage-detection-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/atharwa-24/water-leakage-detection-system
- Repository: https://github.com/atharwa-24/water-leakage-detection-system

## Overview

This is a small Arduino water-leak detector: flow sensors measure input and output water volumes, the Arduino-based system detects variations, and it gives an alert. The README documents these relationships, but no source excerpt was available to establish implementation details or the alert mechanism.

Main entry points: [`Water-Leakage-Detector/Water-Leakage-Detector.ino`](https://github.com/atharwa-24/water-leakage-detection-system/blob/main/Water-Leakage-Detector/Water-Leakage-Detector.ino) (Arduino detector)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_detector["Leak detector"]
  node_firmware["Arduino detector"]
  node_variation_check["Flow variation detection"]
end

node_inlet_flow["Input flow sensor"]
node_outlet_flow["Output flow sensor"]
node_alert["Leak alert"]

node_inlet_flow -->|"measures input"| node_firmware
node_outlet_flow -->|"measures output"| node_firmware
node_firmware -->|"checks variation"| node_variation_check
node_firmware -->|"gives alert"| node_alert

click node_firmware "https://github.com/atharwa-24/water-leakage-detection-system/blob/main/Water-Leakage-Detector/Water-Leakage-Detector.ino"
click node_variation_check "https://github.com/atharwa-24/water-leakage-detection-system/blob/main/Water-Leakage-Detector/Water-Leakage-Detector.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_firmware,node_variation_check toneBlue
class node_inlet_flow,node_outlet_flow,node_alert toneIndigo
```

## Components

### Leak detector

- [Arduino detector](https://github.com/atharwa-24/water-leakage-detection-system/blob/main/Water-Leakage-Detector/Water-Leakage-Detector.ino): `Water-Leakage-Detector/Water-Leakage-Detector.ino`
- [Flow variation detection](https://github.com/atharwa-24/water-leakage-detection-system/blob/main/Water-Leakage-Detector/Water-Leakage-Detector.ino): `Water-Leakage-Detector/Water-Leakage-Detector.ino`

### Other components

- **Input flow sensor**
- **Output flow sensor**
- **Leak alert**

## Connections

- Input flow sensor → Arduino detector: measures input
- Output flow sensor → Arduino detector: measures output
- Arduino detector → Flow variation detection: checks variation
- Arduino detector → Leak alert: gives alert
