Hydrogen, as a representative of the new energy source, has great potential for development, and the detection of the low concentration of hydrogen plays a crucial role in process safety control. In this paper, a gas sensor based on a metal-insulator-metal (MIM) structure with high sensitivity and low response time is proposed. The sensor is bilaterally coupled with a ring resonant cavity and a metal nanopillar, and the outgoing field superposition is achieved by bilaterally coupling the resonant cavity to achieve a lower transmittance, which facilitates detection. The symmetry of the structure was broken by different methods, and the results showed that the complexity and response time of the structure increased significantly after breaking the symmetry, but the transmittance appeared to decrease and the transmission characteristic curve was independent of the coupling phase. The waveguide structure shows a highly linear relationship between resonance wavelength and refractive index with a maximum sensitivity of 2433.00 nm/RIU when used for refractive index sensing, and a maximum sensitivity of −2.61 nm/% when used for hydrogen gas sensing. For methane gas sensing, the maximum sensitivity is −9.22 nm/%.