Carnivorous plants are both consumers and producers. These plants consume animals, insects to derive nutrition from them as they grow in thin soil which is poor in nutrients, and they act as producers to get energy by the process of photosynthesis. For eg, Pitfall traps(pitcher plants), Flytrapper, etc.