How do I get an info about battery percentage that powering up the Arduino

I found a solution in this forum. there is the link: