A 22-year-old man has been sentenced to life in prison for killing a baby sitter who surprised him as he broke into an Orangeburg home.