As you have learned, an old iPhone can live a second life as a security camera pretty well. If it's still in relatively good condition, especially the camera funtion, all you need is to download the app, find the right spot for it to live, mount it in the right place, and you're good to go.