Detect Alcohol Levels with MQ-3 Sensor

Detect Alcohol Levels with MQ-3 Sensor

Objective

This tutorial demonstrates how to detect alcohol levels using an MQ-3 sensor and Arduino.

Required Components

Working Principle

The MQ-3 sensor detects alcohol concentration in the air by measuring changes in its resistance when exposed to alcohol molecules.

Circuit Diagram

MQ-3 Sensor Circuit Diagram

Arduino Code


const int mq3Pin = A0;  // MQ-3 sensor connected to analog pin A0
int mq3Value = 0;

void setup() {
    Serial.begin(9600);  // Initialize serial communication
}

void loop() {
    mq3Value = analogRead(mq3Pin);  // Read the sensor value
    Serial.print("Alcohol Level: ");
    Serial.println(mq3Value);

    delay(1000);  // Wait for 1 second before the next reading
}
            

Results

The serial monitor will display the alcohol level based on the sensor's output.

Applications

Conclusion

The MQ-3 sensor is a reliable way to measure alcohol concentration for a variety of practical applications.