# gininipushes/contactless-water-level-sensor architecture

> Architecture diagram of the GitHub repository gininipushes/contactless-water-level-sensor, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/gininipushes/contactless-water-level-sensor
- Repository: https://github.com/gininipushes/contactless-water-level-sensor

## Overview

This is an ESP32 water-level sensing project. The documented workflow is to wire probes at marked water levels, calibrate readings in the calibration sketch using the serial monitor, transfer calibrated values into the sensing sketch, then view live levels through the ESP32 Wi-Fi web interface. The README documents these capabilities, but no source excerpts were provided, so implementation-level relationships beyond those statements are not inferred.

Main entry points: [`water_level_sensor.ino`](https://github.com/gininipushes/contactless-water-level-sensor/blob/main/water_level_sensor.ino) (Sensing and filtering), [`water_level_calibration.ino`](https://github.com/gininipushes/contactless-water-level-sensor/blob/main/water_level_calibration.ino) (Calibration sketch)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_calibration["Calibration"]
  node_calibration_sketch["Calibration sketch"]
  node_serial_monitor["Serial monitor"]
end

subgraph group_runtime["Water sensing"]
  node_sensor_sketch["Sensing and filtering"]
end

subgraph group_interface["Live interface"]
  node_web_interface["Water-level display"]
end

node_user(("User"))
node_probes["Foil probes"]

node_user -->|"runs calibration"| node_calibration_sketch
node_calibration_sketch -->|"shows readings"| node_serial_monitor
node_user -->|"enters calibrated values"| node_sensor_sketch
node_probes -->|"provide readings"| node_sensor_sketch
node_sensor_sketch -->|"serves live level"| node_web_interface

click node_calibration_sketch "https://github.com/gininipushes/contactless-water-level-sensor/blob/main/water_level_calibration.ino"
click node_sensor_sketch "https://github.com/gininipushes/contactless-water-level-sensor/blob/main/water_level_sensor.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_calibration_sketch,node_serial_monitor,node_user toneBlue
class node_sensor_sketch toneAmber
class node_web_interface toneMint
class node_probes toneIndigo
```

## Components

### Calibration

- [Calibration sketch](https://github.com/gininipushes/contactless-water-level-sensor/blob/main/water_level_calibration.ino): `water_level_calibration.ino`
- **Serial monitor**

### Water sensing

- [Sensing and filtering](https://github.com/gininipushes/contactless-water-level-sensor/blob/main/water_level_sensor.ino): `water_level_sensor.ino`

### Live interface

- **Water-level display**

### Other components

- **User**
- **Foil probes**

## Connections

- User → Calibration sketch: runs calibration (evidence: `README.md`)
- Calibration sketch → Serial monitor: shows readings (evidence: `README.md`)
- User → Sensing and filtering: enters calibrated values (evidence: `README.md`)
- Foil probes → Sensing and filtering: provide readings (evidence: `README.md`)
- Sensing and filtering → Water-level display: serves live level (evidence: `README.md`)
