An Idaho woman who refused to report her husband's yearslong sexual abuse of young relatives and instead prayed for "the demon" to leave him was ordered Thursday to spend a year in a prison treatment program.

Judge Christopher Nye said that if Sarah Kester, 51, fails to successfully complete the program, she will serve at least four and up to 10 years in prison, the Idaho Press reported.

Prosecutors say her husband, Lester Kester Jr., molested five children over two decades. He pleaded guilty in October to five felony charges of lewd conduct with a minor in exchange for prosecutors not pursuing charges of possession of child pornography.

The couple is affiliated with the Followers of Christ Church, whose members eschew medical care for themselves and their children in favor of "faith healing" because they believe that prayer and rituals can sufficiently treat even catastrophic illnesses.

The church has a prominent following in parts of southwestern Idaho and Oregon, and the congregation has been accused of allowing dozens of children to die from a lack of basic medical care. Idaho's child injury law, however, includes a religious exemption that has long allowed church members to act without state intervention.

After Sarah Kester's July 11 arrest, she said she had known of the abuse for the past 17 years, according to the Canyon County Sheriff's Office.

"Sarah Kester told detectives that she didn't report the abuse because it was against her belief system to involve agencies such as law enforcement, child protection services, or counseling services into personal matters," the agency said in a press release. "Instead, she said she attempted to protect ... children through praying for 'the demon' to leave Lester and attempting to keep him busy with other tasks."

Sarah Kester's defense attorney said at sentencing that her client grew up in an isolated community and experienced her own trauma.

"She did everything that she knew to do to take care of them," attorney Bethany Harder Haase said.

Sarah Kester cried as she addressed the court.

"I should've paid attention to all the rumors going around," she said. "I feel so devastated. I should've got out of marriage right there and then."

Three of the victims, now in their teens and 20s, also gave statements, saying Sarah Kester called them offensive names and blamed them for her husband's actions.

The Associated Press isn't identifying the victims or their relationship to the Kesters.

Sarah Kester entered in October a modified guilty plea, in which she maintained her innocence but acknowledged there was enough evidence to convict her. Lester Kester is set to be sentenced Feb. 26.