Uploaded March 2022 | Updated September 2026, 2 weeks ago
Arduino IDE + ESP32 CAM + PIR Motion Sensor + Email | ESP32-CAM Capture and Send Photos Via Email using an SMTP Server | Plus with PIR Sensor.
***********************************************
Especially for users of Google email service (Gmail), the way for ESP32 CAM to be able to login to the sender's Gmail account in this video project is no longer valid, because the Google/Gmail service policy has changed. The latest way for ESP32 CAM to log into the sender's Gmail account is in this video: youtu.be/jfw1XdqlvW8 , the link to download the code is also there.
If you have finished watching the video on that link, you can continue watching or following this video. But for the method so that ESP32 CAM can login to the sender's Gmail account, keep using the method as in the video on that link.
***********************************************
In this project video I use Arduino IDE 1.8.9 , Notepad++ V7.7.1 , Arduino Core for The ESP32, PIR Motion Sensor, Email Accounts for Senders and Recipients, ESP32 CAM AI-Thinker and ESP32-CAM-MB USB Programmer.
00:00 Opening
00:34 Project Preview
01:50 Additional information for creating this project.
02:21 ESP32-Cam Capture and Send Photos Via Email using an SMTP Server
06:01 ESP32-Cam Capture and Send Photos Via Email using an SMTP Server (Demo)
07:52 ESP32-CAM Simple Video Streaming Web Server
09:45 ESP32-CAM Simple Video Streaming Web Server (Demo)
09:58 Test PIR Motion Detector Sensor
10:03 PIR Sensor Installation with ESP32-CAM
11:05 Test PIR Motion Detector Sensor (Demo)
11:27 ESP32-Cam Capture Photos with PIR Sensor and Send Photos Via Email using SMTP Server
13:54 ESP32-Cam Capture Photos with PIR Sensor and Send Photos Via Email using SMTP Server (Demo)
15:11 Closing
The code file is saved in the .rar file format. I created a .rar file using Winrar V5.50, so to extract it, make sure you use the same version of Winrar that I use or the latest version or use the winrar extractor online.
SORRY IF MY ENGLISH IS CONFUSING, I USE AN ONLINE TRANSLATOR.
THANKS FOR WATCHING & DON'T FORGET TO LIKE , SHARE, COMMENT AND SUBSCRIBE.
***********************************************
Installing the ESP32 Board (Arduino core for the ESP32) in the Arduino IDE : youtube.com/watch?v=To3TIOFX6cA
Programming ESP32 Cam with Arduino UNO : easyelectronicsproject.com/esp32-projects/program-esp32cam-arduino
Programming ESP32 Cam with FTDI Programmer : randomnerdtutorials.com/program-upload-code-esp32-cam
***********************************************
***********************************************
For other video tutorials on this channel, please see this playlist:
- Basic4Android (B4A) Tutorials : youtube.com/watch?v=-BIq32-qEgA&list=PLnXsmScWzcm6RVlhPM7qg_OJ2N8OpV99d
- Electronics Tutorials : youtube.com/watch?v=rLdsWt6EP6w&list=PLnXsmScWzcm766h5Dn4AJjbJRzDfCPh4h
- Arduino Tutorials : youtube.com/watch?v=A3_EBZqCG5s&list=PLnXsmScWzcm48hvcTTRAUFcP5Fjd4u8cS
- Great Cow Basic Tutorials : youtube.com/watch?v=orHrLmEvp0o&list=PLnXsmScWzcm7xejzacm5cKJMIh_tXXxN8
- Bascom Avr Tutorials : youtube.com/watch?v=JYKSkNQq9eM&list=PLnXsmScWzcm6F9gX1wYenqjKdqVSM7d6B
- VB .NET Tutorials : youtube.com/watch?v=Sy2vjWO0ydM&list=PLnXsmScWzcm4g8AWEJ6WXVUOBh_cWF5_z
- LoLin NodeMCU V3 ESP12E ESP8266 Tutorials : youtube.com/watch?v=8jMr94B8iN0&list=PLnXsmScWzcm5MERfTvcUNKsYhOUGKe3-V
- ESP32 Tutorials : youtube.com/watch?v=To3TIOFX6cA&list=PLnXsmScWzcm7Y5yCDItJP5Kny_MJ8DeDD
- ESP32 CAM Tutorials : youtube.com/watch?v=_5VmYJZI4XI&list=PLnXsmScWzcm6HjC0CIfVmRG1855tjhj5z
***********************************************
***********************************************
Download Arduino IDE : arduino.cc/en/Main/Software
Download Notepad++ : notepad-plus-plus.org/downloads
***********************************************
***********************************************
Reference :
- Arduino Core for The ESP32 : github.com/espressif/arduino-esp32
- Color reference when editing video : arduino.cc/en/Trademark/CommunityLogo
- ESP32-CAM Take and Send Photos via Email using an SMTP Server : randomnerdtutorials.com/esp32-cam-send-photos-email
- ESP32 Mail Client : github.com/mobizt/ESP32-Mail-Client
and from several other sources.
***********************************************
Arduino IDE + ESP32 CAM + PIR Motion Sensor + Email | ESP32-CAM Capture and Send Photos Via Email using an SMTP Server | Plus with PIR Sensor.
***********************************************
Especially for users of Google email service (Gmail), the way for ESP32 CAM to be able to login to the sender's Gmail account in this video project is no longer valid, because the Google/Gmail service policy has changed. The latest way for ESP32 CAM to log into the sender's Gmail account is in this video: youtu.be/jfw1XdqlvW8 , the link to download the code is also there.
If you have finished watching the video on that link, you can continue watching or following this video. But for the method so that ESP32 CAM can login to the sender's Gmail account, keep using the method as in the video on that link.
***********************************************
In this project video I use Arduino IDE 1.8.9 , Notepad++ V7.7.1 , Arduino Core for The ESP32, PIR Motion Sensor, Email Accounts for Senders and Recipients, ESP32 CAM AI-Thinker and ESP32-CAM-MB USB Programmer.
00:00 Opening
00:34 Project Preview
01:50 Additional information for creating this project.
02:21 ESP32-Cam Capture and Send Photos Via Email using an SMTP Server
06:01 ESP32-Cam Capture and Send Photos Via Email using an SMTP Server (Demo)
07:52 ESP32-CAM Simple Video Streaming Web Server
09:45 ESP32-CAM Simple Video Streaming Web Server (Demo)
09:58 Test PIR Motion Detector Sensor
10:03 PIR Sensor Installation with ESP32-CAM
11:05 Test PIR Motion Detector Sensor (Demo)
11:27 ESP32-Cam Capture Photos with PIR Sensor and Send Photos Via Email using SMTP Server
13:54 ESP32-Cam Capture Photos with PIR Sensor and Send Photos Via Email using SMTP Server (Demo)
15:11 Closing
The code file is saved in the .rar file format. I created a .rar file using Winrar V5.50, so to extract it, make sure you use the same version of Winrar that I use or the latest version or use the winrar extractor online.
SORRY IF MY ENGLISH IS CONFUSING, I USE AN ONLINE TRANSLATOR.
THANKS FOR WATCHING & DON'T FORGET TO LIKE , SHARE, COMMENT AND SUBSCRIBE.
***********************************************
Installing the ESP32 Board (Arduino core for the ESP32) in the Arduino IDE : youtube.com/watch?v=To3TIOFX6cA
Programming ESP32 Cam with Arduino UNO : easyelectronicsproject.com/esp32-projects/program-esp32cam-arduino
Programming ESP32 Cam with FTDI Programmer : randomnerdtutorials.com/program-upload-code-esp32-cam
***********************************************
***********************************************
For other video tutorials on this channel, please see this playlist:
- Basic4Android (B4A) Tutorials : youtube.com/watch?v=-BIq32-qEgA&list=PLnXsmScWzcm6RVlhPM7qg_OJ2N8OpV99d
- Electronics Tutorials : youtube.com/watch?v=rLdsWt6EP6w&list=PLnXsmScWzcm766h5Dn4AJjbJRzDfCPh4h
- Arduino Tutorials : youtube.com/watch?v=A3_EBZqCG5s&list=PLnXsmScWzcm48hvcTTRAUFcP5Fjd4u8cS
- Great Cow Basic Tutorials : youtube.com/watch?v=orHrLmEvp0o&list=PLnXsmScWzcm7xejzacm5cKJMIh_tXXxN8
- Bascom Avr Tutorials : youtube.com/watch?v=JYKSkNQq9eM&list=PLnXsmScWzcm6F9gX1wYenqjKdqVSM7d6B
- VB .NET Tutorials : youtube.com/watch?v=Sy2vjWO0ydM&list=PLnXsmScWzcm4g8AWEJ6WXVUOBh_cWF5_z
- LoLin NodeMCU V3 ESP12E ESP8266 Tutorials : youtube.com/watch?v=8jMr94B8iN0&list=PLnXsmScWzcm5MERfTvcUNKsYhOUGKe3-V
- ESP32 Tutorials : youtube.com/watch?v=To3TIOFX6cA&list=PLnXsmScWzcm7Y5yCDItJP5Kny_MJ8DeDD
- ESP32 CAM Tutorials : youtube.com/watch?v=_5VmYJZI4XI&list=PLnXsmScWzcm6HjC0CIfVmRG1855tjhj5z
***********************************************
***********************************************
Download Arduino IDE : arduino.cc/en/Main/Software
Download Notepad++ : notepad-plus-plus.org/downloads
***********************************************
***********************************************
Reference :
- Arduino Core for The ESP32 : github.com/espressif/arduino-esp32
- Color reference when editing video : arduino.cc/en/Trademark/CommunityLogo
- ESP32-CAM Take and Send Photos via Email using an SMTP Server : randomnerdtutorials.com/esp32-cam-send-photos-email
- ESP32 Mail Client : github.com/mobizt/ESP32-Mail-Client
and from several other sources.
***********************************************




![Basic4Android (B4A) | Custom Toggle Button / Switch
Basic4Android (B4A) | Custom Toggle Button / Switch. I use Basic4Android Version: 7.80.
For beginners Basic4Android (B4A) Users : https://www.youtube.com/watch?v BIq32-qEgA
***********************************************
Thanks for watching & dont forget to like, comment and Subscribe...
***********************************************
***********************************************
Download & Installation Basic4Android : https://www.b4x.com/b4a.html
***********************************************
Download Leapdroid (Android Emulator) : https://leapdroid.en.softonic.com/
***********************************************
Music Background :
Track: Inukshuk - Too Far Gone [NCS Release]
Music provided by NoCopyrightSounds.
Watch: https://youtu.be/60XUgHQo71Q
Free Download / Stream: http://ncs.io/TooFarGoneYO
Song: Warrio - Mortals (feat. Laura Brehm) [NCS Release]
Music provided by NoCopyrightSounds.
Video Link: https://youtu.be/yJg-Y5byMMw
*********************************************** Basic4Android (B4A) | Custom Toggle Button / Switch](https://i.ytimg.com/vi/RnOW-_k4g7o/mqdefault.jpg)


![Arduino Uno + TFT LCD Touchscreen 240x320 Shield | Fixed White Screen and Touch Screen Problems
Arduino Uno + TFT LCD Touchscreen 240x320 Resolution 2.4 Inch Shield | Arduino Uno with TFT LCD Touchscreen 240x320 Resolution 2.4 Inch Shield SPFD5408/ILI9341 Simkeim (Fixed White Screen and Touch Screen Problems). In this project video I use Arduino IDE 1.8.9 , Notepad++ V7.7.1 , Arduino Uno SMD and TFT LCD Touchscreen 240x320 Resolution 2.4 Inch Shield.
Download source code here : https://drive.google.com/file/d/1jejHlokESTUUoAR6sI-3iv0blJFRmJK3/view?usp=sharing
Download SPFD5408 by JoaoLopesF : https://github.com/JoaoLopesF/SPFD5408
The code file is saved in the .rar file format. I created a .rar file using Winrar V5.50, so to extract it, make sure you use the same version of Winrar that I use or the latest version or use the winrar extractor online.
Sorry if my English is confusing, I use an online translator.
***********************************************
Thanks for watching & dont forget to like , share, comment and Subscribe.
***********************************************
For other video tutorials on this channel, please see this playlist:
- Basic4Android (B4A) Tutorials : https://www.youtube.com/watch?v BIq32-qEgA&list=PLnXsmScWzcm6RVlhPM7qg_OJ2N8OpV99d
- Electronics Tutorials : https://www.youtube.com/watch?v=rLdsWt6EP6w&list=PLnXsmScWzcm766h5Dn4AJjbJRzDfCPh4h
- Arduino Tutorials : https://www.youtube.com/watch?v=A3_EBZqCG5s&list=PLnXsmScWzcm48hvcTTRAUFcP5Fjd4u8cS
- Great Cow Basic Tutorials : https://www.youtube.com/watch?v=orHrLmEvp0o&list=PLnXsmScWzcm7xejzacm5cKJMIh_tXXxN8
- Bascom Avr Tutorials : https://www.youtube.com/watch?v=JYKSkNQq9eM&list=PLnXsmScWzcm6F9gX1wYenqjKdqVSM7d6B
- VB .NET Tutorials : https://www.youtube.com/watch?v=Sy2vjWO0ydM&list=PLnXsmScWzcm4g8AWEJ6WXVUOBh_cWF5_z
- LoLin NodeMCU V3 ESP12E ESP8266 Tutorials : https://www.youtube.com/watch?v=8jMr94B8iN0&list=PLnXsmScWzcm5MERfTvcUNKsYhOUGKe3-V
***********************************************
Download Arduino IDE : https://www.arduino.cc/en/Main/Software
Download Fritzing : http://fritzing.org/download/
Download Notepad++ : https://notepad-plus-plus.org/downloads/
***********************************************
Reference :
- Adafruit / TFTLCD-Library : https://github.com/adafruit/TFTLCD-Library
- SPFD5408 by JoaoLopesF : https://github.com/JoaoLopesF/SPFD5408
and from several other sources.
***********************************************
Music Background:
Waited (instrumental) by RYYZN https://soundcloud.com/ryyzn
YouTube : https://www.youtube.com/watch?v=brjYK6yNyvU
Creative Commons — Attribution 3.0 Unported — CC BY 3.0
Free Download / Stream: http://bit.ly/al-waited
Music promoted by Audio Library https://youtu.be/jJg0_gG-nCc
Luxury by Causmic
Genre and Mood : Hip-hop and Rap | Calm
Luxury by Causmic on YouTube : https://www.youtube.com/watch?v=6XEgskTNboI
Lights by Sappheiros https://soundcloud.com/sappheirosmusic
Creative Commons — Attribution 3.0 Unported — CC BY 3.0
Free Download / Stream: https://bit.ly/LightsSappheiros
Music promoted by Audio Library https://youtu.be/-lbbHQbZNKg
chill. by sakura Hz https://soundcloud.com/sakurahertz
https://www.youtube.com/watch?v=KxwQfsDHCpc
Creative Commons — Attribution 3.0 Unported — CC BY 3.0
Free Download / Stream: http://bit.ly/chill-sakuraHz
Music promoted by Audio Library https://youtu.be/pF2tXC1pXNo
Music Title: SUBWAY DREAMS
Artist: Dan Henig
Genre: Dance & Electronic (Dramatic)
Music from Youtube Studio [ Audio Library ]
Anno Domini Beats | Drop
Artist: Anno Domini Beats
Title: Drop
Genre: Hip-Hop & Rap
Mood: Sad
Source: Youtube Audio Library
*********************************************** Arduino Uno + TFT LCD Touchscreen 240x320 Shield | Fixed White Screen and Touch Screen Problems](https://i.ytimg.com/vi/SuJR7nMmofI/mqdefault.jpg)

![Arduino | NodeMCU ESP8266 DHT11 Live Monitoring Sensor (NodeMCU ESP8266 as an Access Point)
Arduino | LoLin NodeMCU V3 ESP8266 DHT11 Live Monitoring Sensor Local Web Server (NodeMCU ESP8266 as an Access Point). In this project video I use Arduino IDE 1.8.9 , Notepad++ V7.7.1 , DHT11 and LoLin NodeMCU V3 ESP8266.
This video project is a continuation of this video: https://www.youtube.com/watch?v=cx4S_rcMrZc, I suggest viewing the video first.
Download source code here : https://drive.google.com/open?id=1uar6sTcZtL-ZcUeBmpMvBMcprcGPNZa7
***********************************************
If an error occurs like this or something like this :
Exception (3):
epc1=0x4000bf64 epc2=0x00000000 epc3=0x4000473f excvaddr=0x4023d571 depc=0x00000000
ctx: cont
sp: 3ffffd00 end: 3fffffc0 offset: 01a0
for more complete error display and solution see here : https://drive.google.com/file/d/19zP6cfRFA2LPx9eFAcTnqa50ir6gM-Zo/view?usp=sharing
Thanks to Prince Okumo (@Prince Okumo) for correcting this error.
***********************************************
***********************************************
Thanks for watching & dont forget to like, comment and Subscribe...
***********************************************
For other video tutorials on this channel, please see this playlist:
- Basic4Android (B4A) Tutorials : https://www.youtube.com/watch?v BIq32-qEgA&list=PLnXsmScWzcm6RVlhPM7qg_OJ2N8OpV99d
- Electronics Tutorials : https://www.youtube.com/watch?v=rLdsWt6EP6w&list=PLnXsmScWzcm766h5Dn4AJjbJRzDfCPh4h
- Arduino Tutorials : https://www.youtube.com/watch?v=A3_EBZqCG5s&list=PLnXsmScWzcm48hvcTTRAUFcP5Fjd4u8cS
- Great Cow Basic Tutorials : https://www.youtube.com/watch?v=orHrLmEvp0o&list=PLnXsmScWzcm7xejzacm5cKJMIh_tXXxN8
- Bascom Avr Tutorials : https://www.youtube.com/watch?v=JYKSkNQq9eM&list=PLnXsmScWzcm6F9gX1wYenqjKdqVSM7d6B
- VB .NET Tutorials : https://www.youtube.com/watch?v=Sy2vjWO0ydM&list=PLnXsmScWzcm4g8AWEJ6WXVUOBh_cWF5_z
***********************************************
Download Arduino IDE : https://www.arduino.cc/en/Main/Software
Download Fritzing : http://fritzing.org/download/
***********************************************
Image Sources and Icons in this video:
Laptop/PC : https://www.iconfinder.com/icons/4417093/code_laptop_mouse_numbers_with_icon
CellPhone : https://www.iconfinder.com/icons/171508/call_phone_smart_icon
WiFi : https://www.iconfinder.com/icons/925808/wifi_icon
Smile Emoticon : https://pixabay.com/id/vectors/smiley-emoticon-bahagia-wajah-ikon-1635449/
NodeMCU V3 ESP8266 : https://github.com/prasertsakd/esp8266_fritzing
DHT11 Image : https://github.com/HuangYuTse/DHT11-module-fritzing-part
Thermometer/Temperature : https://www.iconfinder.com/icons/1041647/temperature_thermometer_thermo%EF%BC%8Cthermometers%EF%BC%8Ctemperature_icon
water/Humidity : https://www.iconfinder.com/icons/2417496/damp_droplets_drops_raindrops_sweat_water_wet_icon
Clock/Time : https://www.iconfinder.com/icons/326483/access_clock_time_icon
Calendar/Date : https://www.iconfinder.com/icons/2203551/book_calendar_date_monthly_icon
Youtube Icon : https://www.iconfinder.com/icons/107167/circle_youtube_icon
***********************************************
Music Background:
Summertime by Scandinavianz https://soundcloud.com/scandinavianz
Creative Commons — Attribution 3.0 Unported — CC BY 3.0
Free Download / Stream: http://bit.ly/Summertime-Scandinavianz
Music promoted by Audio Library https://youtu.be/e_cuXazmRME
Palm Trees by MBB https://soundcloud.com/mbbofficial
Creative Commons — Attribution-ShareAlike 3.0 Unported — CC BY-SA 3.0
https://creativecommons.org/licenses/by-sa/3.0/
Music provided by Music for Creators https://youtu.be/baeVdS-RVvs
Track: Serenity — JayJen [Audio Library Release]
Music provided by Audio Library Plus
Watch: https://youtu.be/VhfJo-CRbkA
Free Download / Stream: http://alplus.io/Serenity
*********************************************** Arduino | NodeMCU ESP8266 DHT11 Live Monitoring Sensor (NodeMCU ESP8266 as an Access Point)](https://i.ytimg.com/vi/Tlnq1BlJ230/mqdefault.jpg)
