convert Hex result of sensor to integer value