A good tutorial on creating a low cost surveillance camera using the raspberry Pi camera module and one of thos fake surveillance camera things.

FJJOOSJHO7X6PIT.MEDIUM

Instructables has a good tutorial on creating a low cost surveillance camera.

Essentially makes use of a Pi, the Camera module and fitted into one of those inexpensive fake surveillance cameras.

It uses motion for the motion detection software.