The road to hell is paved with electronic key fobs.

At least that’s according to observant Jews in Lefrak City, who claim a recent renovation project replaced traditional, metal keys with electronic devices that simply aren’t kosher during Sabbath.

The key fobs send an electronic signal to a sensor on the doorframe, automatically opening the lock on the building’s entrance door.

But they might as well open the gates of hell, according to a Brooklyn federal court lawsuit which argues that Jews who create, trigger or even ask someone to make an electronic circuit for them on the Sabbath “will be “denied a place in Heaven.”

Sinners who break the Sabbath rules are to be “shunned from the Jewish community…treated differently under Jewish law in a variety of ways, and otherwise caused emotional pain and suffering,” claims a lawsuit against the 20-building complex in Corona, Queens.

The key fobs aren’t the only problem zapping observant Jews in Lefrak City. The extensive renovations at the complex included motion detectors in the stairwells to electronically turn on the lights, which for years were simply left on 24 hours a day.

Since this also creates an electric circuit, the stairs can’t be used on Sabbath. And because elevator buttons cannot be pushed, observant Jews are essentially trapped from sundown Friday to sundown Saturday.

“Hundreds of Jewish families and potentially thousands of Jewish individuals have been forced to either break Jewish law, remain holed up in their apartments or stand outside waiting in the snow, rain and dark of night, in order to observe their Sabbath due to The Lefrak Organization’s failure to accommodate the concerns of their Jewish tenants,” according to residents and plaintiffs Sulaymon Ibragimov and Murod Takhalov.

The renovations at the 4,605-apartment complex are “discriminatory,” the men charge.

They say they’ve often been stranded outside on the holy day of rest, when they’re not allowed to wave the key fob by the sensor on the entrance door to get inside.

“I stand around and I hope for a miracle every single time,” Ibragimov, 26, told The Post. “I hope somebody will walk ahead of me and pop [the door] open, and then I stand by the elevator and wait.”

Trying to get home from temple on a Friday night is bad enough, but leaving his apartment to worship on Saturday morning, when fewer people are around, has been nearly impossible, he said.

Ibragimov is often forced to wait in the hallway near the elevator on his floor, hoping someone comes by and calls for the lift because he can’t push the button himself, and is barred, because of the motion detector lights, from using the stairs.

“That waiting can be hectic. It’s muggy, humid, there’s no air conditioning in the hallways. I’ve waited as long as an hour sometimes,” the married father of two said.

“Lots of times I would just get disappointed and turn back around. Basically I end up missing temple because I don’t find any way to get down” to the lobby.

The problem would be easily solved if Lefrak gave them keys, or left the stairwell lights on during the 24-hour Sabbath, but the complex refused, the men claim.

“Now observant Jews have to stand around outside “including in the rain, cold, snow, and the dark of night in a neighborhood that has seen murders and other crimes occur regularly,” according to the lawsuit.

Security guards are frequently switched around, meaning there’s rarely a friendly face who knows them and can let them in, and observant Jews don’t carry ID on the Sabbath, complicating matters, Ibragimov added.

“We don’t live in the stone age, I think everyone understands what the Sabbath is,” he said, frustrated.

Lefrak said in a statement it complied with all of the state Division of Housing and Community Renewals rules and regulations for the project, which cost tens of millions and began in 2012.

The ongoing work includes new lobbies, laundry and mailrooms, building facades, garages, courtyards and athletic courts.