Nebraska social studies teacher Amy Nowaczyk, 26, was sentenced to one to two years in prison on Friday for having sexual contact with a 13-year-old student

A Nebraska middle school teacher has been sentenced to between one and two years in jail for performing oral sex on a 13-year-old student while she was engaged to be married.

Amy Nowaczyk, 26, previously pleaded guilty to amended charges of attempted sexual assault of a child and enticement by electronic device.

She was arrested in April after the 13-year-old student told investigators that they had sexual contact several times inside her classroom at Morton Middle School over the previous eight months starting in August 2017.

The social studies teacher and student exchanged messages via text, Snapchat and the Omaha Public Schools e-mail.

Nowaczyk also sent the student a photo of her bare breasts. In the photo a watch she often wore was visible.

She was at first charged with first-degree sexual assault of a child, which had a maximum sentence of life in prison. The amended charge carried a maximum sentence of 50 years behind bars.

Douglas County District Judge Marlon decided to give her one to two years on one charge and one year on the other, to run concurrently, according to Omaha World-Herald.

She was arrested in April after the 13-year-old student told investigators that they had sexual contact several times inside her classroom at Morton Middle School starting in August 2017

Nowaczyk was accused of performing oral sex on the 13-year-old student and sending him a photo of her bare breasts

Nowaczyk was due to get married to boyfriend bartender Jordan Shurtleffon on June 6, 2018, two months after she was arrested. It's not clear if they're still engaged

Under state sentencing guidelines she will serve six months in prison and must be released after one year. She will receive a credit for one day in jail.

She was due to get married on June 6, two months after she was arrested to bartender Jordan Shurtleff. They had gotten engaged on Christmas Day in 2016, according to the Mirror.

It's not clear if the pair are still engaged.

According to Nowaczyk's teacher page she taught a college-readiness class at the school and was a former dance teacher. She was hired as a social studies teacher at Morton in August 2015.