Biotic factors are living components of an ecosystem that are categorized as producers, consumers, or decomposers. Producers, such as plants and algae, harness energy from sunlight or chemicals through photosynthesis to produce their own food. Consumers, including herbivores, carnivores and omnivores, obtain energy by eating other organisms. Decomposers like bacteria and fungi break down dead organic matter and waste into simpler substances, recycling nutrients in the ecosystem.