Plants take in sunlight, carbon dioxide, and water and produce their own food, glucose (sugar) and oxygen.