A hero pit bull with a nose for peril saved her family by breaking out of her Westchester home and alerting cops to a gas leak, according to reports.

The devoted dog, named Sadie, got loose from her house in Tuckahoe around 3:45 p.m. Wednesday and was caught by police barking up a storm in a yard, ABC 7 reported.

When officers closed in, the dog led them through several streets back to her home, where they noticed a gas odor coming from an open basement window.

Sadie’s owner Serena Costello, who has a 4-year-old daughter, was at work at the time — but police say the dog thwarted a potentially fatal situation.

“The natural gas inside the house can accumulate to the point where if, God forbid, someone came home and turned on the light switch, there could be a potential explosion,” Tuckahoe police Lt. Lawrence Rotta told News 12 Westchester.

The Eastchester Fire Department and Con Edison confirmed the leak that was coming from the basement and fixed the problem.

Police also noticed that a sliding glass door to the home was open and a fence was also broken.

Costello said 11-year-old Sadie — who has never escaped her home before — cleverly dug away until she was able to open the sliding door and “nuzzle her way out.”

“She knows she saved the day, and she’s happy about it,” she said. “She feels she did her job. She really is a hero.”