A man has been sentenced to 20 years in prison for sexually molesting a child following a four-day trial in the 406th District Court, according to authorities.