Alternative to this wobbly valve: measure once with water how large the volume of the small barrel actually is. To simplify, assume that beer weighs as much as water. Then place the small barrel on the scale and stop the transfer when the weight is reached.