An electronic signal relating to a sonic wave when an intended gas does not exist in air is synchronized and locked in a feedback circuit constituting a phase-locked loop (PLL). Then, an electronic signal relating to another sonic wave when the intended gas exist in the air is input into the feedback circuit to release the synchronization (lock) of the feedback circuit to measure as a given electronic signal the difference in phase of the sonic wave in the air between with and without the intended gas to be detected. The intended gas can be detected as the electronic signal due to the difference in phase of the sonic wave.