Table of Contents

Detect Motion And Distance

Author: Josan-Gulica Stela

Introduction

This project aims to identify if somebody is moving inside a room.

Hardware Description

The components used for the project were the following:

The electronic schema:

Software Description

Used Libraries:

#include <WiFi.h>
#include <ESPAsyncWebServer.h>
#include <Firebase_ESP_Client.h>
#include <ESP_Mail_Client.h>

Set-ups:

Work process: The motion sensor is activated and if it detects something, then the input values are read from the distance sensor and are sent to the web page and also the Firebase. An email is sent to a user saying that a motion was detected.

Demo

https://drive.google.com/file/d/1YmhOn_jyhwRgRln94A_p71zc9bTGYsNK/view?usp=sharing

Git Project:https://github.com/stelajg/IoT-project/blob/main/sketch_jun1a.ino

References

https://randomnerdtutorials.com/esp32-send-email-smtp-server-arduino-ide/#:~:text=In%20the%20Select%20app%20field,or%20ESP8266%20to%20send%20emails.

https://randomnerdtutorials.com/esp32-hc-sr04-ultrasonic-arduino/

https://randomnerdtutorials.com/esp32-ds18b20-temperature-arduino-ide/

https://www.electronicwings.com/esp32/pir-sensor-interfacing-with-esp32

https://randomnerdtutorials.com/esp32-firebase-realtime-database