All of the 17 stranded hikers trapped by raging floodwaters in Arizona over the weekend have been rescued, with the last two plucked out of danger early Monday morning.

Pima County Sheriff's Deputy Cody Gress said crews extracted the remaining pair at 6:45 a.m. (9:45 a.m. ET).

They had been stuck on a cliff blocked by water in the Tanque Verde Falls area of Redington Pass in the mountains east of Tucson.

The two had been given water, food and blankets overnight and authorities monitored their status. Eight of the hikers, including a 4-year-old boy, were airlifted from the scene. "The final nine we were able to get out on foot," Gress said.

The incident served as a reminder of the danger of flash flooding "especially in areas like Redington Pass and Sabino Canyon," Gress said.

"It takes time for the water to flow from the mountain down to the valley, and when it does it can be swift and deadly. All too often, hikers decide to hike just after it rains because the air temperature is cooler, not realizing they are walking into areas which are at an increased risk for flash flooding," he said.

Flash flooding caused the deaths of nine members of a family in a popular swimming area north of Phoenix earlier this month. That disaster happened near the Cold Springs swimming hole, just north of Payson, in Gila County, Arizona.

In Pennsylvania and New York

Over the weekend a series of intense storms moved from the Midwest to the Northeast, prompting isolated flash flooding in Kentucky and Pennsylvania, forecasters said.

Flooding hit Pennsylvania on Monday, where there were ongoing water rescues in parts of Bradford County, the county sheriff's office told CNN. Bradford County, in the state's northeast, borders New York state.

Flash flood watches continued for portions of northeastern Pennsylvania and central New York state throughout Monday.

In Maryland, the Queen Anne's County Sheriff's Office said a tornado was believed to have hit the Bayside community early Monday morning, with calls coming in around 1:30 a.m. ET.

The sheriff's office said the weather event had caused multiple structures to collapse, gas leaks and that trees and power lines had been downed.

The National Weather Service will need to conduct a survey to confirm that the damage was from a tornado.