The MQ-4 gas sensor is designed to detect methane gas in the air and is commonly used for natural gas leak detection, indoor air quality monitoring, and in the oil and gas industry. As a metal oxide semiconductor (MOS) sensor, it measures the conductivity of air, which changes when exposed to methane.
With high sensitivity to methane, the sensor can detect even low gas concentrations. The MQ-4 sensor outputs an analog signal that can be processed by a microcontroller to trigger alarms or other responses when methane levels exceed a set threshold. It's easy to use, widely available, and ideal for gas detection. However, it may require regular calibration and might not detect other gases.