This is an old revision of the document!
Grigorie Ruxandra - SRIC
The purpose of this project is to have an ESP32CAM that can be remotely controlled to take and send a picture using a Telegram bot, and also to send a picture when motion is detected in front of the camera.
The main loop of the program checks if any command from the Telegram bot was issued. If the ”/photo” command was received, a new photo will be taken using the ESP32CAM and sent to the telegram bot API. The main loop of the program also checks if the ultrasonic sensor detected movement, and if it did, it takes and sends a picture to the telegram bot API.