The FG loop of a heme-based gas sensor enzyme, Ec DOS, functions in heme binding, autoxidation and catalysis.