The MQ-7 gas sensor has high sensitivity to Carbon Monoxide. The sensor could be used to detect different gases contains CO, it is with low cost and suitable for different application.It is widely used in domestic CO gas leakage alarm, industrial CO gas alarm, and portable CO gas detector. It can be easily interfaced with Arduino or Raspberry Pi using a simple electronic circuit on a breadboard.
Copy the following code to your Arduino IDE to test the MQ 5 Module
Testing MQ-7 GAS sensor with serial monitor
For detecting Carbon Monoxide Gas
Dev: Tom, www.tomsonelectronics.com
const int gasPin = A0; //GAS sensor output pin to Arduino analog A0 pin
Serial.begin(9600); //Initialize serial port - 9600 bps
delay(1000); // Print value every 1 sec.
Detecting Type: Carbonic Oxide(CO)
Rated Voltage: DC 5V
Rated Current: 180mA