A New York social studies teacher has been sentenced to 10 years of probation after pleading guilty to performing oral sex on a 14-year-old boy.

Dori Myers, 29, will not spend a day behind bars and will retain her teaching license after taking a plea deal last month.

Myers taught at The New School of Leadership and The Arts in The Bronx, and while prosecutors argued she should spend two years in jail, her defense attorney successfully argued she should be able to teach again, The New York Post reported.

Former high school social studies teacher Dori Myers, 29, has been sentenced to 10 years probation after pleading guilty to performing oral sex on a 14-year-old male student

'There is a possibility that she could teach adults now or in the future and we want to preserve that possibility,' Andrew Stoll told the court last month.

'She still is a talented teacher and has those skills, and I don't see any reason to destroy her ability to make a living and to contribute to society in a positive way.'

The former high school teacher has been fired by the New York Department of Education, and will not be eligible to teach at city schools again.

As part of her punishment, she must also register as a level one sex offender.

Myers wore a spotted, sleeveless dress and flat white shoes to court on Wednesday, and appeared unimpressed as she sat down to be sentenced.

Myers has been banned from teaching at New York city schools in the future but has retained her teaching license. She will have to sign on to the sex offenders register

Myers is pictured here with her husband, Rockland County Sheriff's Deputy Matt Myers

Matt Myers was not in court on Wednesday, but has been present at her other hearings

Surrounded by police officers, she was seen staring at the judge with a straight face.

Her husband, a Rockland County Sheriff’s deputy, was absent at Wednesday's sentencing, despite being a figure of support at her previous court hearings.

Myers was arrested on January 19 after a friend of the victim, who is believed to have been in her class, told school administrators, who called the police.

At the time, she pleaded not guilty.

A co-worker also claimed to have seen her massaging the alleged victim.

The criminal complaint claims the assault took place somewhere in Upper Manhattan on November 1, 2017.

Myers (pictured) was arrested in January after her victim told a classmate, who alerted school administrators