Case study

LeakSense - IoT Leak Detection Platform

Published1 January 2026
Websitewww.leaksense.io
LeakSense home leak-detection platform landing page

Overview

LeakSense is an IoT water-leak-detection platform. Physical sensors installed on customers' pipes stream telemetry into the cloud, and the web platform handles everything around them — Stripe-powered subscriptions, an admin dashboard for managing the whole device fleet in real time, automatic alerts, and a personal dashboard where customers manage their devices, addresses and account.

Challenge

The core challenge was tying a billing lifecycle to physical hardware: a subscription starts in Stripe at checkout, but billing only fully activates once a real device is assigned and installed at the customer's address. Beyond that, the platform has to ingest telemetry reliably from a growing sensor fleet, deduplicate automatic alerts so admins aren't flooded, and integrate with the Amazon Alexa smart-home ecosystem.

LeakSense user dashboard showing subscription and device status
Technologies used for this project

Frontend: HTML, CSS, JavaScript for the user interface
Backend: PHP to handle API calls and database interactions
API Integrations: Stripe for subscriptions and billing webhooks, Particle Cloud for real-time device telemetry, and an Amazon Alexa smart home integration
Database: MySQL for devices, telemetry, alerts, users and subscription state, with full webhook logging for debugging integrations

LeakSense device detail view
Solution

1. Subscription & device lifecycle: checkout creates a Stripe subscription; an admin then assigns a physical device ID, which activates billing. Activation, renewal-date edits and cancellations all stay in sync between the local database and Stripe, and QR claim links let installers bind each device to its customer on-site.

2. Fleet dashboard & real-time telemetry: Particle Cloud webhooks stream signal, battery and leak events into the platform. Admins get a live fleet overview with per-device health status, sensor details, and before/after installation photos to verify every install.

3. Alerts & notifications: a cron pipeline scans telemetry and raises deduplicated device alerts (leaks, low battery, offline devices), while admins can push targeted notifications to any set of users — all merged into one activity feed with full history.

4. Smart home & customer dashboard: devices connect to Amazon Alexa, and customers manage their devices, addresses and account from their own dashboard.

LeakSense smart home integrations