Carbon dioxide and water are known as byproducts. Please take note that respiration and photosynthesis are basically the exact opposite of each other. Respiration takes diatomic oxygen or simply O2 from the atmosphere and changes it with carbon dioxide or CO2. On the other hand, photosynthesis takes out CO2 from the atmosphere and changes it with O2.