PITTSBURGH (KDKA) — Researchers from the University of Pittsburgh developed a breathalyzer that can measure THC.

TrivLive.com reports that a team from Pitt’s chemistry department and school of engineering developed the device that measures how much THC — the psychoactive compound of marijuana — is in someone’s breath.

READ MORE: Online Presentation Honors Martin Luther King Jr.'s Legacy

The device uses carbon tubes 100,000 times smaller than a human hair to measure THC molecules as the user breathes into the device.

READ MORE: Live Winter Storm Tracker: Winter Storm Blankets Pittsburgh Region With Heavy Snowfall

The molecules bind to the nanotubes and cause a change that can be measured in their electrical properties, TribLive.com said.

The device has been patented, though it has not been commercialized yet.

MORE NEWS: Beloved North Huntingdon McDonald's Employee Ruth Shuster Dies At Age 100

It took the team three years to develop the handheld model.