Added global variable to track last battery voltage measured