Trace detection equipment is used to detect drugs and other narcotics in passenger luggage at airports. These machines work by releasing gas into containers such as suitcases and detecting the presence of substances that match those on the scanner's library.