Fire and gas detectors for extreme environments