Organisms get energy from their ecosystem, with some making their own food through photosynthesis like producers such as plants, grasses, shrubs, trees and algae. Producers use energy from sunlight to produce their own food through photosynthesis, providing oxygen and food for other organisms. Some organisms take in food as consumers while others break down wastes as decomposers.