added battery voltage monitoring