A Florence man was sentenced to federal prison after pleading guilty to 20 counts of child pornography and one count of possession of child pornography.