A 35-year-old man was sentenced to 20 years in prison after pleading guilty to aggravated sexual battery against a minor.