When running an Arduino processor from a battery, it is nice to know when the battery is going to die. You can measure battery voltage but this is a poor indication of how much energy is left in the battery. This article presents a simple circuit that can work with Arduino based software to calculate the energy left in the battery.
If you are interested, please see
Your comments are welcome. All of us are smarter than any one of us.