During photosynthesis, plants take in
carbon dioxide, oxygen
The process by which the plant leaves absorb carbon dioxide to produce glucose (sugar) and oxygen is called photosynthesis.
Carbon dioxide + Water → Sugar + Oxygen.
It can be observed here that plants take in carbon dioxide gas and release oxygen gas during photosynthesis.