Plants exchange gases through stomata, which are tiny pores present on the undersurface of their leaves. The guard cells in the stomata regulate their opening and closing. During photosynthesis, the guard cells around the stomata open to take in carbon dioxide from the atmospheric air and give out oxygen produced into the atmosphere.