Nina Scott (pictured), a 28-year-old woman who taught at a school for troubled youths near Philadelphia, has pleaded guilty to having an affair with a female 16-year-old student

A woman who taught at a school for troubled youths has pleaded guilty to having an affair with a female student.

Nina Scott, 28, from Downingtown, Pennsylvania, accepted a plea deal on Monday for institutional sexual assault on a 16-year-old student whom she referred to as her 'girlfriend'.

She will serve a minimum of three months on electronic home monitoring, followed by five years of sex offender probation.

The assaults took place multiple times between February and October in 2016 while the 28-year-old was a teacher at The Village School in Radnor Township, the Philadelphia Inquirer reports.

It was reported in February this year, after the relationship was uncovered, Scott wrote more than 30 letters to the teenage girl.

In her letters, Scott referred to her bed as 'our bed', called her two-year-old daughter 'our baby girl', and spoke about 'rolling over in bed and missing [the student] because she was not there', WCAU reports.

The affair, which spanned eight months, was sparked by the teenage student sending a note of her own to Scott that read: 'How would you feel if I kissed you?'

Scroll down for video

Scott (left, being arrested earlier this year, and right, in another mugshot) accepted a plea deal on Monday for sexually assaulting the student whom she referred to as her 'girlfriend'

Over the course of the relationship, the teacher and the student had sexual encounters in Scott's car, at her home, and on school property - including in a classroom, according to reports citing the criminal complaint earlier this year.

A journal written by the young student also referenced the relationship, at times referring to Scott as her 'future wife' and 'the love of my life', while also claiming the teacher was 'good in bed'.

Police became aware of the illegal relationship after the student transferred to another school, and staff members found the journal and letters detailing the affair.

The student was at the Mid-Atlantic Youth Services facility when the correspondences were found during a routine search, according to the Inquirer.

The assaults took place multiple times between February and October in 2016 while the 28-year-old was a teacher at The Village School (pictured) in Radnor Township

The Village is a residential child-care facility where young people with behavioral and emotional issues are held after being sent there by court order.

The school's website says its goal is: 'to reach the most vulnerable members of our communities and deliver assistance that lasts.

'We work together with children, families and communities impacted by trauma to support healing and resilience, to encourage hope and to empower them to realize their greatest potential.'

Scott had been hired in October 2015. She was fired after the allegations emerged.