A Hudson Valley school bus driver is heading prison after he was found with child porn.

On Friday in Southern District of New York Court, 26-year-old Matthew Hamill of Wurtsboro was sentenced to seven years in prison in connection with his distribution and possession of child pornography.

Hamill pleaded guilty in January 2017, to one count of transportation of child pornography.

“Matthew Hamill, a school bus driver entrusted with the safety of children, admitted that he possessed and distributed child pornography,” Acting Manhattan U.S. Attorney Joon H. Kim said. “Protecting children from predators is one of our most important missions, and that becomes all the more important when the defendant is someone in regular contact with children.”

Over a two year period, Hamill traded images and videos of child pornography via email. While working as a bus driver for the Minisink Valley Central School District in 2015, Hamill continued to keep child porn on his computer, officials say.

After Hamill learned of an investigation against him, he attempted to delete evidence of the child pornography. However, a forensic examination of his computer, which was seized during the execution of a search warrant at Hamill’s home, recovered 493 child pornography images.

A review of his emails, obtained by the search warrant, showed that Hamill sent 94 emails attaching a total of 135 images and 14 videos of child pornography, official say.

Check out this week's Top 5 Hudson Valley stories including a deer crashing through a windshield on I-84 during rush hour and a high school senior's tragic death.

More From Hudson Valley Post