Stop in for a cup of coffee

You can also turn old cell phones into game and security cameras too. I have one inside my rental unit that’s plugged in to maintain the charge. It’s a prepaid but it works just fine since it’s not a high traffic areas. Uploads any video to a cloud instantly and alerts me if someone opens my door.
That's pretty interesting.
Is there a program, sorry app, for acting as a motion sensor and alerting you?