ALBANY — A Schenectady man on parole for burglary was sentenced to seven years in state prison Thursday for breaking into a Hackett Boulevard home last year while a teenager was at the home, authorities said.

Shawn Atkinson, 34, admitted in July that he smashed the window to a rear basement door of the home last Nov. 22 just after noon.

Albany County Judge Stephen W. Herrick sentenced Atkinson to seven years in prison and five years post-release supervision for the crime, District Attorney David Soares' office said.

The teen called 911 at the time of break-in, summoning police and sending Atkinson fleeing at the sound of the sirens, the district attorney's office said. He was arrested nearby with property from the house on him.

Atkinson was on parole for a Schenectady County burglary that landed him a 6 1/2 year sentence until next year.