Solar energy gets taken in by plants, which get eaten by herbivores, then carnivores. All of these die and get taken in by decomposers, which put the nutrients back into the soil for the plants to take back in. At each stage they lose heat from cell respiration.