In chemistry, a chemical trap is a chemical compound that is used to detect a certain molecule in cases where:
The trapping agent reacts with the chemical to be detected, giving a product that is more easily detected.