This question already has an answer here:
This story Starts out like the standard "Planet of the Apes" routine: Space voyagers from Earth get caught in some sort of warp and return to a recognizable Earth, but the civilization they knew is long gone. In this story, however, all macro biological life has disappeared completely, to be replaced by a wilderness of feral machines, many of them replicating the standard biological forms: amulatory predators/prey (analogous to animals), sessile energy accumulators (like plants), even sea "creatures". Some predators are able to use parts of their prey directly, although most incorporate some kind of smelter or other recycling feature that allows them to mine basic materials from prey. Explosives are part of the repertoire of prey defenses, hinting that some of this may have been kicked off by humans tinkering with autonomous machines meant for warfare. I think it was by a well-known SF author, like, say, Robert Silverberg. I believe it dates back to the 1980s, could have encountered it in a collection of older stuff, but it's definitely post-60s, as integrated chips are mentioned explicitly as a resource.