Electronic Trace Detection (ETD) gives a reading with the specific explosives detected. It uses a swab to collect particles and tests for explosive residue; the machines are commonly used at airports. The results are specific, but are prone to false positives.
Thanks for that information, xjcsa.