producers make their own food- plants, algae, etc.
consumers have to eat producers and sometimes other consumers to stay alive. most animals.
so, organisms would be classified as either producers or consumers by how they obtain energy. (what they eat.)