The basics of battery monitoring