Lost in Space is a science fiction TV series created and produced by Irwin Allen, produced by 20th Century Fox Television, and broadcast on CBS. The show ran for three seasons, with 83 episodes airing between September 15, 1965 and March 6, 1968. Lost in Space was the second of Allen’s four science fiction television series. The show’s first season was in black and white, and the second and third seasons were filmed in colour.
Conceptually, the series was a space-age adaptation of the classic adventure novel Swiss Family Robinson by Johann David Wyss. It followed the adventures of the Robinsons, an astronaut family who were accompanied by their military pilot and a Model B-9, Class M-3 General Utility Non-Theorizing Environmental Control Robot (GUNTER). In the pilot episode, their pioneer mission from an overpopulated Earth to Alpha Centauri in 1997 is sabotaged by the base doctor, Zachary Smith. He slips aboard their spaceship Jupiter 2 before the launch and re-programs the robot to destroy the ship and crew shortly after leaving Earth.
I think the earliest episodes of this show portrayed a darker and more interesting imagining than what became a kids show.