You could potentially use it as a security camera with some modifications or turn it in to a webcam. That phone probably has a better camera than 90% of laptops and cheap security cameras.
https://www.notebookcheck.net/Motorola-Moto-E4-Smartphone-Re...