One common way to test for the presence of CO2 is to use a limewater test. Limewater is a solution of calcium hydroxide (Ca(OH)2). When CO2 is bubbled through limewater, it reacts with the calcium hydroxide to form calcium carbonate (CaCO3), which is a white precipitate. The formation of the white precipitate indicates the presence of CO2.