Do Androids Dream of Electric Sheep? by Philip K. Dick was published in 1968. The novel is set in a post-apocalyptic earth, most of which has been destroyed by nuclear war. Animals are prized because of their rarity and androids are used as slave workers on the planetary outposts where most humans live.
Indistinguishable from humans on the outside, many androids try to escape to earth and pass as human. The novel follows a day in the life of Rick Deckard, a bounty hunter, on the hunt for escaped androids who are distinguished from humans using a polygraph-like empathy test called the Voigt-Kampf.
Ridley Scott adapted the novel into a feature film called Blade Runner in 1982. The film follows the premise of the books and keeps a lot of characters and elements in place, but diverges from the source material quite a bit. So, don't watch the film expecting. However, it's considered a scifi cult classic and was responsible for bringing Philip K. Dick's work to the attention of film studios.
Covers courtesy of LibraryThing.