Producers convert that energy into chemical energy of organic molecules.
Consumers obtain energy by feeding on those molecules.
Energy ultimately leaves the ecosystem as heat.
The chemical elements are recycled.