BANGOR, Maine — While much of the state was spared from heavy snow accumulation during a storm that stuck mostly to the midcoast Saturday, the National Weather Service is warning Mainers about potentially dangerous cold.

A winter storm warning is in effect through Saturday night in coastal Knox, Waldo and Hancock counties, where the highest snow totals are expected. Some islands and coastal communities reported more than a foot of snowfall as of Saturday afternoon, but accumulations dropped significantly farther inland.

The entire state faces biting cold this weekend, prompting wind chill advisories and warnings.

In Bangor, the wind chill could reach 25 below zero Saturday night, according to the National Weather Service in Caribou. Wind chills in Northern Aroostook County could plummet to 35 below zero. In Rangely, the wind chill could is expected to reach 45 below.

The NWS Caribou bureau warned people via social media to be sure they bring their pets inside out of the extreme cold.

The cold is expected to break dramatically during the week, with temperatures expected to hit the mid-to-upper 40s across much of the state on Tuesday.

Follow Nick McCrea on Twitter at @nmccrea213.