A man will spend more than 30 years in prison after pleading guilty to child sex crimes that occurred between 2015 and 2020.