Answer: A decomposer
More in detail:
Insects, worms and bacteria, is a consumer that gets energy from the Sun indirectly when it consumes or decomposes what remains of the bodies of dead plants and animals. The Sun's energy flows to the berry tree, which makes its own food from sunlight, carbon dioxide and water.