DOVER-FOXCROFT, Maine — A woman whose trial for allegedly trying to hire a hitman to kill her husband ended in March when the jury deadlocked is scheduled to plead guilty to charges Monday morning in Piscataquis County Superior Court, according to the district attorney’s office.

Wendy Farley, 48, of Brownville, has entered into a plea agreement with District Attorney R. Christopher Almy. She will plead guilty to one count of criminal solicitation, a Class A crime, Almy said earlier this month.

The joint sentencing recommendation to Superior Court Justice William Anderson will be 10 years with all but 120 days suspended, followed by two years of probation, defense attorney Peter Rodway of Portland said last week in an email.

By pleading guilty, Farley will admit that she tried to a hire a hitman, through Michael Anderson, 51, of Milo, in September 2012 to kill her husband. Anderson testified at Farley’s trial that he went to the police, who helped him tape a conversation with her about how she wanted the job done.

If she had been retried and found guilty, Farley faced up to 30 years in prison and a fine of up to $50,000. The 60 days she was jailed in fall 2012 before posting a $10,000 cash bail, will count toward the 120 days she must serve in the Piscataquis County jail, according to Rodway.

The defendant’s husband of nearly 30 years testified at his wife’s trial for the defense that he reacted with “shock, surprise and disbelief” when his wife was arrested for trying to hire a hitman to kill him. He described her as a good wife and the mother of the couple’s 13 children, then ages 7 to 28.

Luther Farley testified that their eldest child, Caleb Farley, 28, suffered a traumatic brain injury on Jan. 20, 2012, when he crashed his truck on Interstate 95. Farley said their son was in intensive care at Eastern Maine Medical Center in Bangor for three weeks and in the hospital’s rehabilitation center until March of that year.

Wendy Farley was at EMMC almost constantly when their son was in ICU and three days each week while he was in rehab. Luther Farley testified that in the summer of 2012, his wife seemed to change. She began chewing on her hair and sleeping during the day.

“I thought things were good,” he said when asked to assess his marriage.

Anderson, 51, testified in March that Wendy Farley approached him about finding someone to kill her husband. With the help of local police, Anderson recorded a Sept. 18, 2012, conversation he had on his back porch with her while the recording device was hidden in his work boot.

The 39-minute recording was played Thursday for the jury. Almy and Rodway played snippets of the conversation in their closings.