Answer:
Dead producers and consumers and their waste products provide matter and energy to decomposers. Decomposers transform matter back into inorganic forms that can be recycled within the ecosystem. So, the energy that enters an ecosystem as sunlight eventually flows out of the ecosystem in the form of heat.