How does a mercury detector work?
Most commonly they work by pulling air through a UV absorption cell and simply measuring the absorption at 254 nm.  Often there is a pre-concentration step involved.  This usually involves a gold-plated region prior to the UV cell.  At room temperature mercury adsorbs to the gold, then after some period of time the gold-plated region is flash heated to release all of the mercury at once.