CASE STUDY
IoT & Web 2026
IoT-Based First Aid Box Monitoring System
A first aid box monitoring system using a door sensor, ESP32-CAM, and a Laravel application. When the box opens, the device captures images, sends data to the server, and notifies staff through Telegram.
TECHNOLOGIES USED
Laravel 12 / PHP 8.2+ / MySQL / Bootstrap 5 / Tabler / ESP32-CAM / Arduino / C++ / MC38 Magnetic Door Switch / Telegram Bot API / Laravel Queue / FFmpeg / Laravel Excel / DomPDF
- My contribution
- I connected the sensor and ESP32-CAM to a Laravel API and built the event-review and stock-tracking workflow.
- Key decision
- The sensor records access, but stock is updated only after staff review the visual evidence.
PROBLEM
Periodic first aid box inspections only show the condition at the time staff arrive. There is no record of when the box was opened, which items were removed, or evidence that can help determine restocking needs.
MAIN FEATURES
-
01
Door sensor & ESP32-CAM
Opening the box triggers frame capture and event delivery to the API.
-
02
Device-authenticated API
Each device uses its own credentials when sending data to Laravel.
-
03
Private visual evidence
Frames remain private, are processed into video when possible, and can still be played back as a fallback.
-
04
Staff review & stock tracking
Review results record removed items and create stock movement history.
-
05
Notifications & reports
Telegram directs staff to the event, while reports are available in PDF and Excel.
IMPLEMENTATION
The door sensor and ESP32-CAM connect to a Laravel API with device authentication. The device captures a series of JPEG frames whenever the door opens. The server stores the images privately, processes them into video through a queue when FFmpeg is available, provides frame playback as a fallback, and sends a Telegram notification. Staff then review the recording, record removed items, and update stock.
PROJECT SCREENS
Open screen 01 at full size
Open screen 02 at full size
Open screen 03 at full size
Open screen 04 at full size
Open screen 05 at full size
RESULT
The application records when the box was opened, visual evidence, staff review results, and stock changes. A summary is available on the dashboard, and reports can be exported to PDF or Excel.
Need an application for a similar workflow?
Tell me who will use it, how the current process works, and which features are required. I’ll review the requirements before discussing the technical solution.
Talk About a Project