Monitoring external battery via the app

So, I got a servo connected to a PCA9685 which needs a power of 5v. I want to monitor the external battery 5v via the app, so I will know when to charge it. Is it possible? if so, how does it work?