convert Hex result of sensor to integer value

If you know you need twelve bytes, why don't you wait for twelve bytes to appear?