People breathe oxygen in and carbon dioxide out, but for a plant to make carbohydrates, the leaves take in carbon dioxide through the stomata on the leaf surfaces. From the stomata, the mesophyll cells use the carbon dioxide to combine it with water and light for photosynthesis.