Smart valve control sweetens fruit syrup production