Skip to content

Marta-Barea/arduino-MQ138-gas-sensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

🚀 Arduino MQ138 Gas Sensor

This repository provides an implementation and resources for interfacing the MQ138 gas sensor with Arduino to detect volatile organic compounds (VOCs). The project is focused on simplifying the setup and usage of the sensor for gas detection applications.


✨ Features

  • ✅ Support for the MQ138 gas sensor.
  • 🔌 Arduino-compatible code for sensor data acquisition.
  • 📚 Easy-to-follow instructions for hardware setup.
  • ⚙️ Configurable parameters for calibration and gas concentration detection.
  • 📊 Real-time data visualization through the Arduino Serial Monitor.

📖 Overview

The MQ138 is a gas sensor capable of detecting VOCs such as benzene, alcohol, and acetone. This project demonstrates how to connect the sensor to an Arduino, read its output, and interpret the data for environmental monitoring or other gas detection applications.


🔧 Hardware Requirements

To replicate this project, you will need:

  • 🖥️ Arduino board (e.g., Uno, Mega, or Nano)
  • 🛡️ MQ138 gas sensor
  • 🔗 Breadboard and jumper wires
  • 🔋 Power source (USB or external power supply)
  • 📏 Resistors and capacitors (for additional stabilization if needed)

💻 Software Requirements


📥 Installation

  1. Clone this repository:
git clone https://github.com/Marta-Barea/arduino-MQ138-gas-sensor.git
cd arduino-MQ138-gas-sensor
  1. Open the Arduino Serial Monitor and set the baud rate to 9600.
  2. Observe the sensor readings in real-time. The output includes raw analog values, which can be processed to estimate gas concentrations.

📜 License

This project is licensed under the GNU GENERAL PUBLIC License. See LICENSE for details.

About

Source code for MQ-138 gas sensor with Arduino UNO

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages