I built myself a phototrap using a Raspberry Pi and a spare webcam. It was a proof of concept to demonstrate a function of a python package I developed for aesthetic analysis of images, that was presented at an international conference. The camera detects movements, and send an image to my via Telegram.
I am now using it to take pictures of stray cats moving outside my house.