A counselor at a substance abuse treatment center in Michigan will have to register as a sex offender after admitting she had sex with two men in custody.

Rachele Johnson, 26, of Leslie, dodged jail time on Tuesday but was sentenced to five years’ probation and was ordered to attend therapy after pleading guilty to fourth-degree criminal sexual conduct, misconduct in office and furnishing a cellphone to a prisoner, the Lansing State Journal reports.

Prosecutors said Johnson had sex with two men while working at the House of Commons, a court-mandated, state-operated substance abuse treatment center in Mason. The men claimed they were not victimized by Johnson, but her status as a Michigan Department of Corrections employee meant that the men were unable to consent to the illicit encounters, Ingham County Chief Assistant Prosecutor Lisa McCormick said.

Johnson — who worked nights and often was the only counselor on duty — also gave the men cellphones and let them leave the treatment center to buy alcohol, one of the men testified at her preliminary hearing.

The man characterized his relationship with Johnson as “flirty,” testifying that he would accompany her into a property room with no surveillance cameras. Johnson also concocted bogus medical appointments so they could leave the premises together, the man testified.

Ingham County Circuit Court Judge Joyce Draganchuk ruled, however, that there was no evidence that Johnson used her position to coerce the men into sex. But Johnson’s actions undercut the legitimacy of the treatment center and harmed its overall structure, Draganchuk said.

Other charges against Johnson, including harboring escapees and providing contraband in prison, were dismissed, the Lansing State Journal reports.