A man who served a previous prison sentence for sexual activity with a child began communicating with what he believed to be a 14-year-old girl.