Ex-North Penn High School math teacher Heather Zeo was sentenced Thursday in Montgomery County Court in Norristown.
The 37-year-old Warrington woman pleaded guilty in May to misdemeanor corruption of minors charges.
Authorities say Zeo admitted having sex with a 17-year-old student in a shopping center parking lot and having sexual conversations with another last year.
District Attorney Risa Vetri Ferman says both boys were in her 11th grade home room class.