September 3, 2020 | 1:14pm | Updated September 3, 2020 | 2:50pm

A search-and-rescue dog detected a child’s heartbeat beneath the rubble of Beirut — a month after a massive explosion turned much of the city to ruins.

Rescue teams are gingerly sifting through the collapsed concrete in the upscale East Beirut neighborhood of Gemmayze, according to multiple reports.

“They detected a signal from a potential heartbeat for a second time – they are going in,” tweeted the BBC’s Claiure Reed shortly after noon New York time.

She also tweeted video of workers lowering a rescue worker into the rubble.

A team from Chile had been making the rounds in the neighborhood when their rescue dog alerted at one of the collapsed buildings, Beirut-based journalist Luna Safwan tweeted.

“It seems to be a small kid inside the building,” Chilean rescue worker Eddy Bitar of “Live, Love, Lebanon” told Al Jazeera. “We’ll do whatever it takes,” he said.

“This was an abandoned house but maybe some refugee or some worker was illegally inside,” he said.

The rescue dog — a five-year-old pooch named Flash” — had alerted at the building while walking by on Wednesday evening, he said.

“Yesterday when our dog just smelled that there was something under the debris we make sure in the early morning to bring all the equipment,” he said.

“We found that there was two possible corpse” in the rubble, he said. “One of them might be alive. We’re just making sure no one is in the house,” he said at 1:30 p.m New York time.

Reed said whispers of “Is it true? Could someone be alive??” wafted through a crowd that had gathered there.

Finding someone alive would be a miracle, Liz Sly, the bureau chief there for the Washington Post, tweeted Thursday.

“Rescue teams are digging. Let there be a miracle.”

Gemmayze is just a few blocks from the port where the Aug. 4 explosion at a chemicals storage warehouse killed 181 people.