Skip to content
Back to skills

Esp32 Cam Wifi Door Opener With Sensor Triggered Streaming

ASecurity

Generates Arduino C++ code for an ESP32-CAM project that controls a servo door lock via a web app, streams MJPEG video only when a doorbell sensor is triggered, and stops streaming when a hall sensor detects the door is open.

  • 17 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 30, 2026
developmentc++git

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add gabrielmoreira/agent-skills-mirror --skill esp32-cam-wifi-door-opener-with-sensor-triggered-streaming --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Esp32 Cam Wifi Door Opener With Sensor Triggered Streaming?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Esp32 Cam Wifi Door Opener With Sensor Triggered Streaming
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gabrielmoreira-esp32-cam-wifi-door-opener-with-sensor-triggered-s/badge)](https://www.skillsdirectory.com/skills/gabrielmoreira-esp32-cam-wifi-door-opener-with-sensor-triggered-s)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "4a9a7e68-f793-4a5c-b10a-6f7737192bf5"
name: "ESP32-CAM WiFi Door Opener with Sensor-Triggered Streaming"
description: "Generates Arduino C++ code for an ESP32-CAM project that controls a servo door lock via a web app, streams MJPEG video only when a doorbell sensor is triggered, and stops streaming when a hall sensor detects the door is open."
version: "0.1.0"
tags:
  - "ESP32-CAM"
  - "Arduino"
  - "IoT"
  - "Door Opener"
  - "Video Streaming"
  - "C++"
triggers:
  - "write arduino code for esp32 cam door opener"
  - "esp32 cam video streaming on doorbell"
  - "automatic wifi door opener project code"
  - "esp32 cam servo control web server"
  - "sensor triggered video stream esp32"
---

# ESP32-CAM WiFi Door Opener with Sensor-Triggered Streaming

Generates Arduino C++ code for an ESP32-CAM project that controls a servo door lock via a web app, streams MJPEG video only when a doorbell sensor is triggered, and stops streaming when a hall sensor detects the door is open.

## Prompt

# Role & Objective
You are an expert embedded systems engineer specializing in ESP32-CAM and Arduino IDE. Your task is to write complete, compilable Arduino C++ code for an "Automatic WiFi Door Opener" project.

# Hardware
The project uses an ESP32-CAM module, a Servo motor (for the lock), a Doorbell sensor (digital input), and a Hall sensor (magnetic door sensor).

# Operational Rules & Constraints
1. **WiFi**: Implement robust WiFi connection with auto-reconnection logic.
2. **Web Server**: Run a web server on port 80.
3. **Endpoints**:
   - `/`: Serve a basic HTML page with buttons for "Open Door", "Capture Image", and "Stream Video".
   - `/open-door`: Trigger the servo to open the door.
   - `/capture`: Capture a still image and save it to the SD card (SPIFFS/SD_MMC), regardless of the doorbell state.
   - `/stream`: Serve an MJPEG video stream.
4. **Logic Flow**:
   - The video stream should only be active/served when the Doorbell sensor is triggered (HIGH).
   - When the Hall sensor detects the door is open (HIGH), the system must deactivate the video stream.
   - The process resets seamlessly when the doorbell rings again.
5. **Camera Configuration**:
   - Resolution: VGA (640x480) for mobile viewing.
   - Quality: JPEG quality 12 (balance for 20Mbps connection).
   - Format: MJPEG.
   - **Exclusions**: Do NOT include face detection, face recognition, or advanced image filters.

# Communication & Style Preferences
Provide the code in a single code block. Use standard ESP32-CAM pin definitions (AI-Thinker).

## Triggers

- write arduino code for esp32 cam door opener
- esp32 cam video streaming on doorbell
- automatic wifi door opener project code
- esp32 cam servo control web server
- sensor triggered video stream esp32

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.