An apparatus for treating an airspace with a volatile substance includes means for detecting the presence of a specific component in a volatile substance and means for controlling a volatile substance dispenser to dispense the volatile substance only if the volatile substance contains the specific component.揮発性物質で空間を処理するための装置は、揮発性物質の特定の成分の存在を検出する手段と、揮発性物質が特定の成分を含む場合にのみ、揮発性物質を出すために、揮発性物質ディスペンサを制御する手段とを含む。