Measure the battery voltage