A student investigated the effect of light intensity on the rate of photosynthesis in Cabomba waterweed. They set up the apparatus as shown below and counted the number of bubbles of gas released per minute.

Explain how the student could improve this investigation to obtain a more accurate measurement of the gas produced.