MUSKEGON, Mich. (AP) – A 17-year-old who brought a loaded sawed-off shotgun to a western Michigan high school has been sentenced to at least three years in prison.

The Muskegon Chronicle reports Dayvon Davis learned his punishment Friday after earlier pleading guilty.

READ MORE: Michigan Matters: The Political Road Ahead

Davis, who turns 18 this month, will serve a mandatory two years for possessing a firearm while committing a felony, followed by sentences of one to 15 years for firearm possession by a felon, possession of a short-barreled shotgun and resisting and obstructing police.

READ MORE: 'My Name Is Sara' Film On Holocaust Survivor Premieres In Metro Detroit

Staff at Muskegon Heights Public School Academy called police in September to report an intruder was in the building. Davis wasn’t a student at the school.

Police say Davis dropped a backpack and ran when officers approached him. He was later found hiding under a vehicle.

MORE NEWS: Dearborn Homecoming Festival Kicks Off This Weekend

© Copyright 2016 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.