In green plants, the carbon dioxide released during respiration gets utilized during photosynthesis. Oxygen can be thought of as a waste product generated during photosynthesis and exits through stomata, root cell walls, and other routes. Plants can get rid of excess water by transpiration.