A state bill that would require car manufacturers to install a device to protect children from being abandoned in hot cars was introduced Friday as two twin babies who roasted to death in the Bronx were laid to rest in matching white caskets.

Dozens of mourners said tearful goodbyes to 1-year-olds Luna and Phoenix, whose father Juan Rodriguez is accused of leaving the infants in his sweltering Honda for eight hours last week.

“Oh my God. I love them so much. I can’t believe it,” Rodriguez, 39, of Rockland County sobbed at the service in Yonkers.

The tragedy has sparked the “Heatstroke Elimination Awareness Technology Act,” introduced Friday by state Sen. David Carlucci (D-Rockland), which would require all passenger cars built after July 1, 2021, to have motion-activated technology to detect when a child has been left behind.

The legislation would alert drivers — possibly with a beep and then louder honking — when someone is still in the vehicle, Carlucci said.

“We’ve got to push and force the manufacturers to have a rear seat detection standard. Kids can fall asleep in the back seat and [parents] forget,” said Carlucci. “It’s preventable. But it’s not preventable by [just] telling parents to ‘do the right thing.’”

The lawmaker, who said 52 kids died in the US last year after being left in hot cars, added, “The most outrageous thing is that … this technology exists and it’s not being used here.”

The bill — which so far includes few details about how the device would work, or how the law would impact out-of-state car makers — is meant to kickstart a nationwide law, according to Carlucci and lobbyists.

“The legislation is an important first step … it’s an important way to jumpstart the conversation,” said John Corlett, a director of AAA’s legislative committee.

Congress is already considering legislation that would study the technology for a two-year period before directing automobile manufacturers to the technology available.

The devices may operate much like Hyundai’s 2019 Santa Fe model, which offers a “rear occupant alert” system with “ultrasonic motion sensors,” said Carlucci, who lives in the same district as Rodriguez, and said the death of his twins prompted him to introduce the bill.

The bill, which would move forward in January at the earliest, doesn’t include motorcycles or commercial vehicles.

Rodriguez, an Iraq war veteran, could face manslaughter charges after he allegedly forgot about the babies and went to work at a veterans hospital in Kingsbridge for eight hours. The twins were later found unconscious and foaming at the mouth in their car seats.

Bronx prosecutors are still investigating and have not yet presented Rodriguez’s case to a grand jury. His lawyer believes Rodriguez won’t be indicted.

After the wake on Friday, Christa Shecter, 45, an aunt of the twins, cheered the idea behind the bill, saying, “We are looking to pass laws to have the technology to prevent any other family [from] undergoing this horrific tragedy.”