Best way to turn old Android phone into a secure surveillance Camera?

Okay nvm, I totally forgot about this one: Use cases | Ninja Docs

It can be used with a website directly, with a native mobile app, self-hosted and the quality looks quite good. Overall a very solid choice and super easy to use.