A man has received a sentence of up to 20 years in prison after being convicted on charges related to sexually preying on children.