
Arduino Starter kit
Kits

The MQ7 Gas Sensor is specifically designed for detecting carbon monoxide (CO), making it ideal for air quality monitoring, gas leakage detection, and industrial safety applications. Its ability to sense CO at low concentrations makes it a critical component in safety systems like CO alarms.
The MQ7 Gas Sensor is specifically designed for detecting carbon monoxide (CO), making it ideal for air quality monitoring, gas leakage detection, and industrial safety applications. Its ability to sense CO at low concentrations makes it a critical component in safety systems like CO alarms.
The MQ7 sensor uses a SnO₂ (tin dioxide) sensing layer. In clean air, the conductivity is low. When exposed to carbon monoxide, the sensor's conductivity increases, and the change in resistance is used to measure the concentration of CO in the environment.
The MQ7 sensor operates in a cyclic heating mode:
const int analogPin = A0; // Analog output pin
const int digitalPin = 2; // Digital output pin
int analogValue = 0;
void setup() {
Serial.begin(9600);
pinMode(digitalPin, INPUT);
}
void loop() {
// Read analog value
analogValue = analogRead(analogPin);
// Print analog value (CO concentration)
Serial.print("Analog Value: ");
Serial.println(analogValue);
// Check digital output
if (digitalRead(digitalPin) == HIGH) {
Serial.println("CO concentration exceeded threshold!");
}
delay(1000);
}
Shop more
Products from the same category or commonly paired with this item.
Shop more
Customer favorites that are getting the most attention.
Shop more
Freshly added items from the shop.