A former high school teacher who admitted having sex with a 16-year-old student on a park bench and sending him steamy selfies was sentenced Thursday to 10 years of probation.

Alaina Ferguson, 25, was also fined $800 and sentenced to 120 days in jail — to be served two weeks per year over several years. She must also perform 150 hours of community service and register as a sex offender for 10 years after pleading guilty to charges of an improper relationship between a teacher and a student and indecency with a child by exposure, the Dallas Morning News reports.

Ferguson, a former algebra teacher at Plano Senior High School, was arrested in late 2016 after she and the teen started a relationship at the beginning of the school year after he wrote his Snapchat handle on a test and gave it to Ferguson, according to an arrest warrant obtained by The Post.

Shortly afterward, Ferguson met up with the teen in Lewisville, where they had sex on a park bench, according to an affidavit. They also had sex in the back of the teen’s pickup truck after a football game and in her fiancé’s apartment while he was out of town on a hunting trip.

Ferguson, who also exchanged nude photos with the teen and supplied him alcohol during their two-month relationship, later called off her engagement. She resigned just two months after starting her job in August 2016, school officials said.

Ferguson told the victim that she knew their relationship was “not the right thing to do, but it felt right at the time,” according to the arrest warrant.

Ferguson’s encounters with the teen also typically involved a game of beer pong. Other students at the school learned of her relationship with the teen after he started boasting about the illicit meetings.

“I heard the kid was just talking about it to his friends, and I guess a teacher or a student overheard it,” senior Andy Flores told KTVT. “She’s kind of good looking … so she’s attractive.”

One parent of a student at the school said he was shocked after learning of Ferguson’s arrest.

“That’s very concerning to hear you’re sending your child somewhere you think is safe,” parent James Bishop told KDFW. “You want them to learn and get a good education but not that kind.”