That depends. Plants both respire and photosynthesise. In the former, the "waste" product is carbon dioxide. The latter produces oxygen as a by-product.
Any system which consumes "intake" - be it an animal's digestion or a car's engine - must either use that intake totally, or dispose of that part of the intake which is not used. If the unused...