Function for measuring battery voltage
Function for measuring supply current