A former southwestern Missouri high school teacher has been sentenced to six years in prison on a federal child porn charge.

SPRINGFIELD — A former southwestern Missouri high school teacher has been sentenced to six years in prison on a federal child porn charge. 

Matthew McCroskey, 51, was sentenced Wednesday, the Springfield News-Leader reported. Prosecutors said McCroskey admitted to searching out and downloading child pornography from the internet. Investigators found at least 96 images and one video of child pornography on McCroskey's computer. 

Evidence was also presented at his sentencing that McCroskey set up a hidden camera and secretly recorded young women as they used the bathroom at his house. 

McCroskey had worked at Logan-Rogersville schools starting in 2004, teaching English and sponsoring the yearbook. He was fired following his arrest in January 2019.

At his sentencing, a judge ordered McCroskey's sentence credited for the two years he has already served in jail awaiting trial and sentencing. He also was ordered to pay $5,000 in restitution ot one of the child pornography victims.