I use an app called Presence. It allows me to use my old ios devices as motion activated cameras. It is free and since I have a handful of old iphones and ipads, there are no cameras to buy. I get an alert on my phone if there is motion detected and I can look at what was recorded.
Mark