Gas sensors mounted on pipe with metallic mounting rail