A restricted flow thermally cycled gas sensor