In the system, ESP32-CAM is utilized for the main surveillance system. For simple monitoring of the surveillance system, Android app is developed using Flutter.
External sensors are used for detecting motion and proximity. For motion detection, SR-602 PIR module sensor is used. For proximity detection, HC-SR04 ultrasonic module sensor is used. Interconnection between ESP32-CAM and the external sensors is described as the following.
When there is nothing to detect or process, the ESP is set to be in deep sleep mode. PIR sensor is then used to wake the ESP up from the deep sleep to be able to confirm detection using the ultrasonic sensor. If confirmed, the ESP immediately take a picture and send it to Google Firebase, beside the log and notification using FCM.
The app is used for simple monitoring. When a new picture arrives, the user will be notified. The app will fetch the image and show it from the app.
This project is done in only a week, so there are many rooms available for improvement. If you want to contribute to that, please do a PR or create an issue.