← All projects

CPET 491 / PURDUE UNIVERSITY FORT WAYNE

From detection
to response.

An IoT fire detection and automatic suppression prototype, built by a three-person senior design team. I led system architecture and firmware development, connecting sensor readings to local alerts, mechanical actuation, and remote notifications.

ESP32C/C++ArduinoREST APIWi-Fi
Watch the demonstration ↓
Average detection time
≈ 1.48s
Detection trials under 2 seconds
6 / 6
Active requirements verified
17 / 17
Final prototype cost
$366.38

01 / THE CHALLENGE

Connect the whole response.

The project explored how a compact system could detect a potential fire, warn people nearby, send a remote alert, and activate a suppression mechanism. The challenge was integrating those functions into one working prototype for small indoor environments.

This was an academic proof of concept tested in controlled conditions. It was not certified for commercial fire protection or intended to replace a certified system.

02 / MY CONTRIBUTION

Architecture and firmware.

I designed the system structure and developed the ESP32 firmware in C/C++ using the Arduino framework. I evaluated MQTT as a communication option and implemented Twilio SMS alerts through HTTP POST requests over Wi-Fi.

The firmware brought together sensor input, detection logic, relay control, alerts, and automatic reset. I also contributed to project documentation and software reporting. I also integrated Telegram notifications, shown in the demonstration gallery.

Team contributions: Max Tsenov focused on component selection, sensor integration, and hardware testing. Thomas Fraizer handled procurement, circuit assembly, and power-system integration. We collaborated on integration and validation.

03 / SYSTEM DESIGN

From sensor input to action.

The ESP32 coordinated sensing, local response, and Wi-Fi notifications. The workflow below summarizes how the components work together.

  1. 01 / SENSE

    Flame + temperature

    KY-026 flame sensor and DHT22 temperature sensor feed the controller.

  2. 02 / PROCESS

    ESP32 firmware

    Evaluate sensor conditions, manage response timing, and reset after the condition clears.

  3. 03 / RESPOND

    Local + remote

    Buzzer and LED, relay-controlled 12V linear actuator, and Wi-Fi SMS alerts.

Design decisions

Communication: The team selected Twilio HTTP POST messaging after evaluating MQTT. App-based alert history and remote silencing were removed from scope, with SMS records and automatic reset supporting the revised workflow.

Actuator control: A relay controlled the 12V actuator that pressed the extinguisher handle. Firmware limited activation to approximately five seconds to reduce mechanical stress and actuator overuse.

Recovery: Automatic Wi-Fi reconnection and reset behavior helped the prototype return to monitoring after an event.

04 / TESTING & RESULTS

Evidence from acceptance testing.

The team used inspection, demonstration, output analysis, and repeated hardware trials in a controlled indoor environment. Results below are reported in Section 6 of the final project report.

Selected prototype verification results
MeasureReported resultContext
Fire detectionAll 6 trials under 2 seconds; average ≈ 1.48 secondsFlame-source trials with the physical prototype
Suppression activationWithin the 3-second targetActuator deployment and retraction verified during tests
Remote notificationSMS delivered within the 5-second targetTwilio alerts reported successful in all tested cases; a separate SMS trial count is not specified
Standby operationAt least 24 hoursContinuous standby operation in the test setup
Requirements17 active requirements verified, no failures20 originally defined; 3 removed from scope. The report rates 15 as exceeding expectations.

Source: team Final Project Report, “Results and Acceptance Testing” and requirements verification matrix. The measurements reflect the controlled prototype tests.

DESIGN DOCUMENTATION

Engineering evidence

Visuals from our final senior design presentation connect the prototype to its design and verification work. Select a diagram to inspect the full-size image.

PROJECT RISK ASSESSMENT

Probability and impact

The team recorded 20 project risks and rated probability and impact from 1 (very low) to 5 (very high). This matrix plots the values in the presentation’s risk register, with a score of probability × impact.

Planning assessment · Rows: probability · Columns: impact · Scores range from 1 to 25
Probability / Impact1 · Very low2 · Low3 · Medium4 · High5 · Very high
5 · Very high—Score 5—Score 10—Score 15—Score 20—Score 25
4 · High—Score 4—Score 8—Score 12—Score 16R20Score 20
3 · Medium—Score 3—Score 6R2, R9, R12, R14, R19Score 9R1, R5, R6Score 12R11, R15Score 15
2 · Low—Score 2R17Score 4R7, R16Score 6R13, R18Score 8R3, R4, R10Score 10
1 · Very low—Score 1—Score 2—Score 3—Score 4R8Score 5

Replotted from the numerical register on slide 20 because some placements in the original heatmap differ from that register. These are planning ratings, not measured failure rates or residual risk after mitigation. The register includes concepts such as MQTT and an app that were later removed from the implementation scope.

Risk descriptions and ratings
Team project risk register, transcribed from the final presentation
RiskDescriptionProbabilityImpactScore
R1Wi-Fi connection failure3412
R2False flame readings from environmental noise339
R3Temperature sensor malfunction2510
R4Relay fails to activate extinguisher2510
R5Power supply interruption3412
R6Software bugs cause missed or false alarms3412
R7MQTT server downtime236
R8Extinguisher empty or fails to discharge155
R9App alert display failure339
R10Safety hazard during live-fire testing2510
R11Overheating or short circuit3515
R12Component compatibility issues339
R13Relay driver circuit failure248
R14Corrosion or environmental wear339
R15Memory overflow or stack crash3515
R16OTA update failure236
R17Time synchronization errors224
R18Wi-Fi credential exposure or hacking248
R19Data loss during transmission339
R20Insufficient calibration or testing4520

View original risk register ↗

05 / TRADEOFFS & NEXT STEPS

What I would carry forward.

The final prototype cost was $366.38 against an initial $250 target—a $116.38 overrun. The actuator, fabricated PCB, shipping, and integration costs made the gap between a parts estimate and a complete prototype clear.

The project reinforced the value of testing subsystems before integration and tracing results back to requirements. For a next iteration, I would prioritize false-alarm testing under varied light conditions, long-term actuator reliability, additional smoke or gas sensing, and power failover.

For cybersecurity, the connection is practical: validate input signals, make system behavior observable, and plan how a system recovers when something goes wrong.