You probably know it's against the law in most states to text and drive — but studies suggest that many of us still peek at our smartphones when we're behind the wheel.

This habit, however, contributes to distracted driving. According to the U.S. Department of Transportation, 3,179 people were killed in car crashes involving a distracted driver in 2014.

New York is considering a law that would go beyond what any other state has done to allow police to examine drivers' phones after a crash to determine whether the driver was texting at the time of the incident.

Will Law Enforcement Check Phone Records After A Crash?

The man behind this idea is Ben Lieberman. His 19-year-old son, Evan, died after a car crash in the Hudson Valley, north of New York City, in 2011.

"The driver of the car my son was in drifted over the yellow line and collided head on with an oncoming car," Lieberman says. Evan Lieberman was in the back seat, wearing a seat belt. He suffered massive internal injuries and died a month later.

Lieberman figured the police would investigate and look at the driver's cellphone. He was surprised when they didn't.

"The driver said he fell asleep at the wheel," Lieberman says. "But when I finally got the cellphone records six agonizing months later, I saw texting throughout the drive and near the collision."

Lieberman eventually got the driver's phone records himself, but he had to file a civil lawsuit to do it.

"There's a huge misunderstanding out there that police will look at phones at a crash, or that they subpoena the phone records afterwards," Lieberman says. "Those are both very huge misconceptions."

Law enforcement can subpoena records from the phone company or ask a judge for a warrant to search the phone itself. Sometimes, police and prosecutors will do that, especially for a major crash with fatalities. But they don't always do it because it takes a lot of money and time for cases that can be hard to prove.

"Oftentimes, drivers aren't willing to admit that they were texting on their cellphone or they were distracted by some other source," says Tom Dingus, director of the Virginia Tech Transportation Institute. "It's just underreported."

Police accident reports say distraction is a factor in less than 20 percent of crashes. But Dingus thinks the real number is much higher. When researchers at Virginia Tech put cameras in cars, they found that distracted drivers account for almost 70 percent of crashes.

"They're looking at a cellphone, they're talking on a hand-held phone, they're tuning a radio." Dingus says. "All of those things."

How To Know Whether The Driver Was Driving And Texting?

Nearly all states have made it illegal to text and drive. Some, like Utah, Illinois and New Jersey, impose big fines on drivers who get caught. But enforcement of those laws can be difficult.

In New York, Lieberman is proposing something that's never been tried before. He wants to build an electronic device that could plug right into a cellphone and tell police whether it was in use at the time of the crash. Lieberman insists it would be designed not to look at sensitive information such as personal communications.

The device is called the "textalyzer." Think Breathalyzer, but for text messages and other electronic distractions.

"You know, it's not gonna have any embarrassing conversations, any embarrassing pictures. It's just gonna show text in, text out," Lieberman says. "I don't think that you have to surrender all your privacy rights to get this right."

He has been talking to the company Cellebrite about actually building the textalyzer. An accompanying bill has been introduced in the New York Legislature.

But civil liberties advocates have big concerns.

"There are so many ways in which somebody could be using the phone in a car that is not a violation of any laws," says Mariko Hirose, a lawyer with the New York Civil Liberties Union. For example, the driver might be looking at a map, pulling over to the side of the road to send a text or using voice-activation software.

That's not Hirose's only concern.

"This bill is simply providing a way for law enforcement to get around the privacy protections that apply to a cellphone," Hirose says.

But Dingus says the textalyzer is worth a try.

"You're putting other people at risk when you drive and text, or drive and check stocks," Dingus says. "It's not just your privacy; you're putting other people at risk."

Copyright 2016 NPR. To see more, visit http://www.npr.org/.