Oh, baby.

A mother in Scotland got scared when she heard strange noises coming from her baby’s bedroom late at night — only to realize later that her tot’s Bluetooth nightlight had picked up the sounds of a neighbor watching an X-rated film.

Over the weekend, Dawn Lothian and Josh Mackay were watching TV at their Edinburgh home when they heard mysterious moaning from their baby daughter River’s bedroom, South West News Service (SWNS) reports.

Dawn Lothian, baby River and Josh Mackay, pictured.

Dawn Lothian, baby River and Josh Mackay, pictured. (SWNS)

MAN MAKES 'BEER BONG' TO HELP BABY DAUGHTER DRINK MORE FORMULA

Startled, the mom rushed to investigate — and said their sleeping five-month-old was about to wake up from the noisy sounds of an adult film inexplicably blaring through the Bluetooth device.

"When I went through I was like 'Oh my goodness,’" Lothian, 29, recalled. "You could tell in an instant what it was — you didn't need to know the language to know what was happening," she added.

"It was quite loud, my daughter was starting to toss and turn."

The Amazon nightlight plays music and projects stars, Lothian said, surmising that someone accidentally connected to the device.

The Amazon nightlight plays music and projects stars, Lothian said, surmising that someone accidentally connected to the device. (SWNS)

FOLLOW US ON FACEBOOK FOR MORE FOX LIFESTYLE NEWS

The nightlight, which Lothian purchased through Amazon, plays music and projects stars, she said. Lothian added that she assumed someone had accidentally connected to the device, but she wasn't about to let it happen again.

The next day, the proactive parent posted a note on the door of their shared building to call out the unknown culprit.

Setting the record straight, the proactive parent posted a note on the door of their shared building to call out the unknown culprit.

Setting the record straight, the proactive parent posted a note on the door of their shared building to call out the unknown culprit. (SWNS)

"Whoever was watching porn last night at 11:30 p.m. has connected their device to our babies nightlight, can you please disconnect ASAP, thanks," Lothian wrote.

CLICK HERE FOR FOX NEWS' CONTINUING CORONAVIRUS COVERAGE

Ever since, the mom says, the scolding seems to have worked. Lothian told The Daily Record that she hasn't heard an explicit beep from the Bluetooth since posting the open letter.