# How to Send Email Notifications using ESP32-CAM
Published on May 21, 2026 | Category: IoT & Embedded

This project demonstrates an ESP32 CAM motion detection with a PIR system designed for smart surveillance applications. It detects movement, captures images, and notifies the user via email.

## Components Required
| S.No | Components | Purpose |
| :--- | :--- | :--- |
| 1 | ESP32-Cam | Main controller & image capture |
| 2 | PIR Sensor | Motion detection |
| 3 | Red LED | Status indication |

## How it Works
The system operates by integrating an ESP32-CAM module with a PIR sensor. Once movement is detected, it sends a signal to the ESP32-CAM, which captures a photo and sends it to your email via the CircuitDigest Cloud API.

## Code Highlight
```cpp
// WiFi and API Credentials
const char* ssid = "yourssidname";
const char* password = "yourpassword";
const char* apiKey = "yourapikey";

// PIR and LED Pins
#define PIR_PIN 13
#define RED_LED_PIN 14
```

This setup works as a compact WiFi-connected ESP32-CAM email alert system that can be deployed anywhere with internet access.
