A Florida teacher who sexually assaulted a 14-year-old student in her car and in a barn now faces 10 years in prison.

Brunette Stephanie Peterson, 27, pleaded guilty as part of a deal with prosecutors to lewd or lascivious battery sex act with a child and transmission of harmful material to minors by electronic means.

Peterson — who toiled at New Smyrna Beach Middle School — was arrested last February after picking up the Grade 8 student and have sex with him in her car.

But when the boy’s mother found out, the jig was up and Peterson reportedly started panicking she would tell the cops, the Daytona Beach News-Journal reports.

“So she’s planning on doing something with it,” Peterson wrote to the teen.

Adding, she hated the boy: “So much.”

Then in a desperate gambit, she tried to get the boy to cool his enraged mom’s jets.

“Pleas (sic) tell her it was the worst decision of my life and I know it was and idk (I don’t know) where my brain was but that I somehow fell in love with you briefly and idk why and I’ll never be the same person because of it,” Peterson wrote.

She then added: “Delete everything.”

Peterson also pleaded guilty to sending the boy raunchy photos.

The former teacher — who was fired — faces a minimum of five years in the joint and a 10 spot in a worst-case scenario.

She will be required to register as a sex offender. She had no comment outside court.