A former coach for a northern New York school district has been sentenced to 15 years in federal prison for attempting to entice an underage girl into having sex with him.