See also:
... is taken in mainly through the roots. Sunlight acts as the energy needed to run the reaction that yields glucose as the product the plant needs and oxygen as a waste ...