Emily Nesbit, an 11th grade English teacher, resigned last week after she was accused of having sexual relations with a student at her high school.
Nesbit, 31, was charged with institutional sex assault, a third-degree felony.
Police say that Nesbit admitted meeting an 18-year-old male student for sex in a classroom after hours at Cumberland Valley High School in Mechanicsburg, Pa.
Nesbit is charged based on her position as a teacher, without regard to the age of the student. If convicted she could face up to seven years in prison.
Administrators learned about the alleged inappropriate contact March 10 after a female student discovered sexual text messages on the alleged victim's phone.
These included partially clothed and naked pics of the couple.