A former Massachusetts State Police lieutenant and a former trooper were both sentenced in federal court Tuesday in connection with the overtime abuse scandal that rocked state police.

Former Massachusetts State Police Lt. David Wilson, of Charlton, is the first supervisor to be sentenced in the case. Several troopers were sentenced already and Wilson, along with two other lieutenants, still face state charges in the overtime case.

Wilson, 58, and Heath McAuliffe, 41, of Hopkinton, both pleaded guilty previously to one count of embezzlement from an agency receiving federal funds.

McAuliffe, in a previously written statement to a federal judge, said other members of Troop E were abusing the overtime system and, at first, he found it unfair he was singled out.

The trooper later said he was able to accept responsibility for his actions.

Federal prosecutors revealed in court Tuesday that the focus of the investigation started against troopers who doctored, falsified and created bogus citations.

Wilson spoke briefly in court during his sentencing. He said he will “rise above” and continue to support his community and his family.

Federal Judge Richard Stearns called the circumstances of the case against Wilson “disturbing” considering his position as a supervisor.

Stearns was clearly moved by the letters of support for Wilson and took note of Wilson’s years of being a foster parent.

The judge sentenced Wilson to one day in prison, deemed already served, with two years of supervised release. Wilson will be on home detention for the first six months. Wilson will also pay $12,450 in restitution.

Stearns said the public may see his sentence as light but said Wilson’s character helped him earn “the indulgence of the court.”

A total of 10 troopers were charged in both state and federal court after authorities said they skipped overtime shifts, created phony citations and submitted fictious payroll records while they were supposed to be conducting specialized patrols on the Massachusetts Turnpike and Metropolitan Tunnel System.

Federal prosecutors said records showed Wilson sometimes had his cruiser active for one minute while he was supposed to be working overtime patrols known as AIRE, Accident Injury Reduction Effort patrols.

In federal court Tuesday, prosecutor Mark Grady said Wilson “chose not to uphold the law, but to break it.” Wilson, a supervisor within the state police, committed “outright fraud,” the prosecutor added.

Troopers involved in the case also skipped specialized patrols known as “X-Team.” Both patrols were created to stop aggressive driving and reduce accidents on the Mass. Pike and the tunnel system.

More than 40 troopers were flagged in the overtime investigation that began in 2017. The troopers, all part of the now-former Troop E, skipped shifts in 2015 and 2016, authorities said.

Massachusetts Attorney General Maura Healey said the state’s investigation in the overtime scandal is not over. It is unclear if federal authorities plan on bringing charges forward against other troopers.

The government continued to allege troopers working the specialized patrols had ticket quotas to reach, an accusation state police said is untrue.

Wilson collected $12,450 in overtime hours that he didn’t work during AIRE patrols. The 30-year-plus veteran of the state police retired in March 2018 amid allegations of the overtime abuse.

“Troopers assigned to these shifts who chose to abuse these overtime benefits would purport to write the minimum number of tickets, and then simply go home,” federal prosecutors wrote. “In many instances, these troopers would obtain the minimum number of citations in an hour, or less.”

Wilson is receiving a monthly pension payment of $8,791 from the state after he retired. The Massachusetts State Retirement Board can now review that pension. The board has already suspended one trooper’s pension after he was convicted and is reviewing another trooper’s pension.

In court filings, prosecutors also accuse the troopers charged in the case with working together to commit the abuse. Former Trooper Daren DeJong, who is one of the troopers charged in federal court, cooperated with investigators from Healey’s office and offered insight into the scandal, records show.

In the federal cases, troopers are accused of creating phony citations to cover up the fact they weren’t conducting enforcement. For Wilson authorities said, “In some instances, bogus citations were created ahead of shifts that Wilson planned not to work, and in others, Wilson created bogus citations after the fact.”

Wilson skipped 124.5 hours of AIRE overtime, authorities said.

Defense attorney Leonardo Angiulo pointed to the many support letters written on his client’s behalf while arguing for a lesser sentence recommended by the government.

Wilson and his wife were foster parents for more than 50 children. Wilson’s family and friends filled two rows of seats inside the courtroom Tuesday.

Angiulo said Wilson was a dedicated member of the state police who worked tirelessly to protect the public.

McAuliffe was suspended amid the overtime investigation and he later resigned. Grady said McAuliffe made calculated efforts to receive money for shifts he did not work.

The entire overtime scandal is a “betrayal of the public’s trust,” Grady said.

Defense attorney James Sultan said in McAuliffe’s case, the amount of money taken is much smaller than other fraud cases seen in federal court.

McAuliffe told the judge his actions were “immoral and illegal” and accepts any sentence handed out by the judge.

Judge Denise Casper sentenced McAuliffe to one day in prison, deemed already served, and one year of supervised release. He will on home confinement for six months.

McAuliffe will pay $7,860 in restitution.

He skipped working AIRE patrols between August 2015 and August 2016, federal records show.

During one shift, McAuliffe claimed he wrote eight motor vehicle citations. Investigators reviewed the citations during one shift and discovered no driver histories were requested and seven of the citations had never been issued, authorities discovered while reviewing state Registry of Motor Vehicle records.

The eighth citation was issued to a driver, seven hours earlier and not during the overtime patrol.

The Massachusetts State Retirement Board said McAuliffe did not retire so he is not receiving pension payments.

His lawyer, in a sentencing memorandum, said McAuliffe will forfeit all “his potential State Police pension benefits, which had been accruing for the past 18 years.”

“I betrayed my oath, my badge, and my community. I stole money from the taxpayers I was supposed to serve,” McAuliffe wrote in the filing. “I brought dishonor on myself, my family, and on the State Police, an institution that I love. I also failed as a father who serves as a role model for my young sons.”

McAuliffe hopes to become a nurse, but his conviction will make that difficult, the defense lawyer said.

The former trooper wrote a letter to the judge before his sentencing. He said he first thought the federal charge against him was “unfair.”

“To be honest, it has taken me some time to come to grips with my wrongdoing and stop making excuses, blaming the ‘culture’ and feeling sorry for myself,” the former trooper wrote. “When I first learned that I was going to face federal criminal charges, I felt it was unfair. I told myself that almost all of my colleagues at Troop E were doing the same thing, that it wasn’t really a big deal, and that it wasn’t fair that I was one of a handful of troopers being singled out for federal prosecution and having my career and reputation ruined.”

McAuliffe said he spoke with his therapist and his pastor and was able to reflect on accepting the consequences.