MOUNT CLEMENS (WWJ/AP) – A 26-year-old former science teacher who had sex with a 13-year-old girl in southeastern Michigan has received a 10- to 50-year prison sentence.

Ex-Armada Middle School teacher Robert Yaek pleaded no contest in January to first-degree criminal sexual conduct, using a computer to commit a crime, and child pornography charges.

READ MORE: MRLA Offering Free Food Safety Classes for Kids

Macomb County Circuit Judge Mary Chrzanowski sentenced him Tuesday in Mount Clemens after telling Yaek that he blemished the teaching profession and ruined the girl’s life.

READ MORE: Whitmer: $32M Investment To Recruit, Retain Police Officers

Authorities say Yaek had sex with the seventh grade student between February and May 2014. They say the encounters happened in a closet next to his classroom and at a house where he was staying. It was also revealed that Yaek sent a number of explicit photographs of himself to the girl’s cell phone.

Yaek is a 2011 graduate of Central Michigan University. According to his profile on the Armada Area Schools website, Yaek — who said his favorite number is 13 — decided to become a teacher because of the relationships he had with some of his teachers growing up.

MORE NEWS: Deputies Find Human Remains In Mid-Michigan Soybean Field

TM and © Copyright 2015 CBS Radio Inc. and its relevant subsidiaries. CBS RADIO and EYE Logo TM and Copyright 2015 CBS Broadcasting Inc. Used under license. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. The Associated Press contributed to this report.