Close
0%
0%

Stove Watcher

A smart thermal monitor that sends Telegram alerts if your cooktop is left unattended.

Similar projects worth following
0 followers
The Problem: Unattended cooking is a leading cause of household fires.

The Solution:
Stove Watcher is an intelligent safety add-on for the open source tCam-Mini thermal camera. Instead of just showing you a heat map, it actively monitors your kitchen. It uses a thermal sensor to detect if the stove is hot and uses motion detection algorithms to see if a human is nearby.

If the stove is hot and no one has been seen for 5 minutes, it sends a critical alert to your phone via Telegram, complete with a thermal snapshot of the scene.

This project is a firmware modification for the open-source tCam-Mini hardware (ESP32 + FLIR Lepton 3.1R). While the original firmware is great for streaming thermal video, this modification turns it into a standalone safety device. All other functionality of tCam-Mini remains untouched. 


There are 3 main functions that added to the firmware: 

  1. Stove State Monitoring (Heat Detection): The device continuously analyzes the radiometric data from the Lepton 3.1R sensor. It tracks the maximum temperature in the frame.
    • Hot Threshold: If the temperature exceeds 80°C, the stove is flagged as "HOT".
    • Cooling Hysteresis: To prevent false "safe" alerts during brief temperature dips (e.g., lifting a pan), the system utilizes a 5-minute cooldown timer. The stove is only declared "OFF/COOL" if the temperature remains below 80°C for 5 continuous minutes.
  2. Human Presence Detection (Thermal Motion): Unlike standard PIR sensors, Stove Watcher uses the thermal image itself to detect presence. It scans specifically for pixels within the human body temperature range (25°C - 38°C).
    • It uses frame-differencing to detect motion. If a cluster of "human-temp" pixels moves significantly between frames, the system registers a human presence.
    • Safety Logic: Whenever a human is detected while the stove is hot, the "Unattended Timer" is reset to zero.
  3. Critical Alerting System: If the stove is detected as HOT and no human motion is detected for 5 minutes, the device triggers a critical alarm.
    • Remote Notification: Connects to the Telegram Bot API to send a warning message ("Cooktop is unattended while hot!").
    • Visual Proof: Generates a 160x120 BMP thermal snapshot of the scene and uploads it with the alert. This features Automatic Gain Control (AGC) to ensure the image contrast is optimized for the current temperature range, and supports image rotation for under-cabinet mounting.

IMG_7DD5EB59AA82-1.jpeg

The camera must be positioned to capture a "split" view. It cannot point only at the pots, nor only at the floor. Zone A (Stove Top): The camera must clearly see the burners/heating elements. This is required for the Heat Detection logic (checking if Temp > 80°C). Zone B (Standing Area): The camera must see the floor space immediately in front of the stove. This is required for the Human Presence Detection logic (checking for moving pixels between 25°C - 38°C). Under-Cabinet / Range Hood (Best): Mounting the device high up, looking down at a 45-degree angle, is often ideal. This usually captures the stovetop in the upper half of the frame and the chef's torso/legs in the lower half. Note on Rotation: The firmware defaults to 180-degree rotation (IMAGE_ROTATION 2), assuming the device might be mounted upside down under a cabinet.

JPEG Image - 228.11 kB - 01/10/2026 at 19:21

Preview

  • 1
    Build Instruction
    1. Hardware Prep: Assemble the tCam-Mini with the Lepton 3.1R module.
    2. Environment: Set up the Espressif ESP-IDF (v4.4.4) development environment.
    3. Code: Clone the repository
    4. Config: Create a Telegram Bot via BotFather, get your Chat ID, and update stove_monitor.h with your Wi-Fi and Telegram credentials.
    5. Compile: Flash the firmware to the ESP32.
    6. Install: Mount the camera so it sees both the stove burners and the area where you stand while cooking.

View all instructions

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates