Bonnie McLachlan had nothing to say to reporters as she left the courthouse on Wednesday. (Ryan Pilon/CBC)

The former Prince Albert teacher convicted of sexually exploiting a 15-year-old student two decades ago has received an 18-month sentence but will not be going to jail.

The Crown had been asking for jail, but instead, the judge gave Bonnie McLachlan 200 hours of community service and a conditional sentence that will be served at home.

The judge also told McLachlan she will be required to register as a sexual offender.

Following a trial earlier this month, a jury convicted McLachlan of the crime.

McLachlan, 52, was charged after the male victim came forward with a complaint as an adult.

During her testimony, McLachlan denied having sex with the teen during the 1993-94 school year.

However, the victim, whose identity is protected by a publication ban, testified that a sexual relationship had developed between the two and that McLachlan was the one who initiated it.

It was the second time McLachlan had been tried on the charge. The first time she was acquitted, but the Crown appealed and a new trial was ordered.