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.
Silver Spring (Pa.) Township police learned that the student and teacher had been in contact for about two months and met several times in the classroom after school.
The student did not deny his relationship with the teacher. Police said the teacher's phone number was listed as "My Lady Friend" in the student's iPhone.
Prosecutors are urging parents to closely monitor their children's phones and social media accounts in the wake of this latest student-teacher sex scandal.
"The message to parents is, you need to 100% read your child's text messages, follow them on Instagram, follow them on Twitter," prosecutor David Freed said.
Nesbit's attorney released a statement following the scandal going public, explaining that the teacher "made a series of bad decisions at a low point in her life."
Going forward, she "intends to accept responsibility in court and continue to work on her personal issues that lead to the alleged inappropriate conduct."