An ecosystem consists of biotic and abiotic factors interacting with one another. Biotic factors are living organisms that can be classified as producers, consumers, or decomposers based on how they obtain food. Producers such as plants produce their own food through photosynthesis. Consumers including herbivores, carnivores, and omnivores obtain food by eating producers or other consumers. Decomposers like fungi and bacteria break down dead organisms and waste.