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: Pittsburgh Cultural Trust Plans To Welcome Back Patrons With 'We Are The Global Majority' Exhibit

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: Mon Incline Reopens To The Public

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: Better Business Bureau Reports Increase In Imposter Scams In Western Pennsylvania

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