Soda lime is used in the experiment to absorb carbon dioxide. It acts as a chemical absorbent that removes carbon dioxide from the air in the chamber, allowing the researchers to control the levels of carbon dioxide present during the experiment. This helps to demonstrate the importance of carbon dioxide in the process being studied.