MQ-3 ALCOHOL DETECTOR SENSOR

 MQ-3 : ALCOHOL DETECTOR SENSOR

                                                       The MQ-3 alcohol sensor is suitable for detecting alcohol concentration on your breath, just like your common breathalyzer. It has a high sensitivity and fast response time. Sensor provides an analog  resistive output based on alcohol concentration. We can interface MQ 3 sensor with Arduino to identify the presence of alcohol.


Application:

  • The MQ-3 sensor can detect or measure Alcohol.
  • To catch drunk and drive.
  • To indicate the presence of alcohol in a product.

Sample Project With Arduino:

                                     In this we going to turn ON the LED whenever the MQ-3 sensor senses  the presence of alcohol.

Materials required:

  • MQ-3 gas sensor
  • Arduino UNO
  • Red LED
  • Jumper wires

Code:

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

Popular posts from this blog

Voice Record & Playback Module

GSM Sim800L

GPS