This was the first—and it may be the last—episode of Lost in Space that I've ever watched. My attention was called to it by the same reader who had found allusions to Shakespeare in Buffy, the Vampire Slayer.
In this episode, upon the disappearance of Dr. Smith, Robot (who has his own Shakespearean connection, being designed by the designer of Robbie, the Robot, of the Tempest-related Forbidden Planet) holds the ice bag Dr. Smith had on his head earlier and gives us part of Hamlet's Yorick speech:
I don't have much to say beyond that—except to note that this is one more instance of the pervasiveness of Shakespeare in modern Western culture.
Links: The Episode at IMDB.