These organisms obtain nutrients by consuming detritus, which is dead plant and animal material. Detritivores include animals such as earthworms, millipedes, sowbugs, and beetles, as well as fungi and bacteria.