
MQ7 Carbon Monoxide Sensor
sensors

The MQ6 Gas Sensor is specifically designed for detecting liquefied petroleum gas (LPG), but it can also detect propane and other combustible gases. It is commonly used in gas leak detection systems, industrial safety devices, and home automation projects.
The MQ6 Gas Sensor is specifically designed for detecting liquefied petroleum gas (LPG), but it can also detect propane and other combustible gases. It is commonly used in gas leak detection systems, industrial safety devices, and home automation projects.
The MQ6 sensor uses a SnO₂ (tin dioxide) sensing layer, which has low conductivity in clean air. When exposed to LPG or other combustible gases, the conductivity increases. This change in resistance is used to measure the concentration of gases in the surrounding environment.
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 (gas concentration)
Serial.print("Analog Value: ");
Serial.println(analogValue);
// Check digital output
if (digitalRead(digitalPin) == HIGH) {
Serial.println("Gas 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.