Implemented battery level sensor driver