A former California teacher accused of “grooming” a student for sex will dodge jail as part of a plea deal.

Corine Audiat, 32, was sentenced Friday to 180 days of jail time for having sex with a 16-year-old student — but she will be allowed to serve under electronic monitoring from inside her own home, the East Bay Times reported.

Audiat, who was a Fremont gym teacher, pleaded no contest in December to two felony counts of unlawful sex with a minor, and oral copulation of a person under 18.

She was arrested after authorities received a tip in November 2016 that she was sexually involved with a male student at Washington High School.

The victim’s parents later filed a lawsuit accusing Audiat of “grooming” her students by flirting and texting with them. She also allegedly texted the 16-year-old that she wanted to pull him into the gym equipment room and kiss him, according to the suit.

As part of the plea deal, Audiat will register as a sex offender and was ordered to stay away from the victim for 10 years. She will also be required to surrender her teacher’s credentials.

She is forbidden from unsupervised interaction with minors and will be forced to undergo counseling.