Add logic to determine number of cells, with low battery warning @ 3,7V/Cell