Under Influence Detection

How about something that can detect if person under the influence of Alcohol or other substances. Have sensors detect how person is driving the vehicle to assess. Also other sensors that detect the "smell" of the substance (i.e. alcohol, marijuana)
Wow, not sure how that technology would come about!?