Brooks Kenney pleaded guilty to more than 25 charges, including burglary, theft, robbery and assault.
Police say Kenney broke into at least a dozen homes on Bangor’s west side in August.
Police say during one break-in, Kenney maced an 82-year-old woman.
He was eventually captured after someone spotted him in his backyard and called police.
As part of a plea deal, Kenney was given a ten year sentence, with all but six years suspended.
Assistant District Attorney Mike Roberts says all the victims in the case were notified about the sentence.
Kenney was also ordered to pay more than twenty three hundred dollars in restitution.