Acidic carbon dioxide reacts with basic potassium hydroxide to form potassium carbonate and water.
2KOH+CO2→K2CO3+H2O
The increase in the mass of U tube corresponds to the mass of carbon dioxide produced from which, the percentage of carbon in the organic compound is estimated.