An organism that obtains nutrients from dead plants and animals.