Plants manufacture food through photosynthesis. The rate of photosynthesis is affected by factors like light intensity, carbon dioxide levels, and temperature. Materials and energy flow through an ecosystem as plants use light energy to produce food and oxygen through photosynthesis, and animals consume the plants or other animals to obtain energy and nutrients while returning waste.