Here is how to turn an old phone into a network camera you can view live from anywhere.
Viewing from outside usually requires linking an internet account between the two devices.
If the camera will show people, please be mindful of their privacy.