Green plants during photosynthesis use carbon dioxide in the air for preparing food and they release oxygen gas in the air during this process. Thus the balance of oxygen in the air is maintained.
Oxygen consumed by living beings during respiration and due to burning of fuels is constantly replenished by plant through the process of photosynthesis