MQ-4 : METHANE NATURAL GAS DETECTOR SENSOR
MQ-4 : METHANE NATURAL GAS DETECTOR SENSOR
The MQ4 is a simple-to-use compressed natural gas
(CNG) sensor, suitable for sensing natural gas (composed of mostly Methane
[CH4]) concentrations in the air. The MQ4 can detect natural gas concentrations
anywhere from 200 to 10000ppm. We can interface MQ4 sensor with Arduino to detect the presence of
methane.
Application:
- The MQ-4 sensor can detect or measure Methane and natural gases.
- To avoid fire accidents in methane industries.
- To indicate the level of methane in a product.
Sample Project With Arduino:
In this we going to turn ON the LED whenever the MQ-4 sensor senses the presence of methane.
Materials required:
int sensorpin = 8;
int LED = 13;
void setup() {
Serial.begin(9600);
pinMode(sensorpin, INPUT);
pinMode(LED,
OUTPUT);
digitalWrite(LED, LOW);
Serial.println("MQ");
}
void loop() {
if(digitalRead(sensorpin) == LOW)
{
digitalWrite(LED, HIGH);
Serial.println("Detected");
delay(500); }
else {
digitalWrite(LED, LOW);
Serial.println("Not Detected");
delay(500); }}
Comments
Post a Comment