# How I Built OmniUtility: An AI Multi-Utility Monitor on Raspberry Pi 5

> Source: <https://dev.to/aamanverma995cell/how-i-built-omniutility-an-ai-multi-utility-monitor-on-raspberry-pi-5-278m>
> Published: 2026-12-03 05:35:21+00:00

**Recommendation:** Run lightweight anomaly detection like Z-score and IsolationForest on the edge device itself, and publish readings over MQTT so multiple nodes can be monitored and alerted on centrally.
More in the playbook "Running AI in production": <https://wpnews.pro/playbooks/production-ops>

Utility monitoring in residential buildings and multi-flat complexes usually requires separate, closed-source meters for electricity, water, and gas. To solve this with a single open-source edge controller, I built **OmniUtility** — an AI-driven multi-utility monitoring platform running on a **Raspberry Pi 5**.

### 
  
  
  What OmniUtility Monitors

OmniUtility combines three utility streams into one Python deployment with local persistence and cloud telemetry:

1. 
**Electricity (PZEM-004T):** Measures voltage, current, active power, cumulative energy, frequency, and power factor via USB-UART.
2. 
**Water Flow (YF-S201):** Tracks real-time flow rate (L/min) and cumulative volume using pulse counting.
3. 
**Gas Leakage (MQ-4 + ADS1115):** Reads raw ADC values, voltage, and %FSD to trigger early gas leak warnings.

### 
  
  
  System Architecture

### 
  
  
  Why Edge AI + Multi-Flat MQTT?

- 
**AI Anomaly Detection:** Using Z-score and IsolationForest models directly on the Raspberry Pi 5 flags abnormal water flow spikes, electrical overloads, or gradual sensor drift before hardware fails.
- 
**Multi-Flat Coordination:** Designed for apartment buildings and housing societies, multiple edge nodes publish over MQTT to coordinate building-wide utility analytics.

### 
  
  
  Get Started & Explore

You can explore the full system overview, hardware list, and contact details on the official portal at **[www.omniutility.in](https://www.omniutility.in)**, or clone the source code directly from **[GitHub](https://github.com)**.
