Dosage control through flow meter and valve
Why not simply weight the glass with the drink while mixing it. The change of weight while pouring in an ingredient should be sufficient to determine the amount filled in.