A judge in northeast Ohio has sentenced a former teacher to 56 years in prison for secretly recording kindergartners using a bathroom next to their classroom.

Thirty-three-year-old Elliot Gornall was sentenced Monday in Ashland County after pleading no contest in October to 181 counts, many of which involved the use of minors in nudity oriented material or performance. Gornall entered that plea intending to appeal a judge's ruling that said images found on his computer were properly obtained and could be used as evidence.

Authorities say Gornall used a small spy camera to record 25 of his students at a school in Loudonville, about 80 miles south of Cleveland. The images were recorded between August and November 2014.

Neither Gornall nor his attorney addressed the charges during sentencing.