The Sun provides energy for the plants (producers) to grow. Herbivores (primary consumers) then eat the producers for energy. Any animals that eat the herbivores are considered secondary consumers. As this cycle continues, energy is lost to the environment as heat.