How to make Smoke Detection Alarm using Arduino? Last Updated : 30 Apr, 2024 Comments Improve Suggest changes Like Article Like Report Arduino is an open-source electronics platform based on easy-to-use hardware and software. Arduino boards can read digital & analog inputs from the sensors and The MQ2 smoke sensor is sensitive to smoke gases like LPG, Butane, Propane, Methane, Alcohol, Hydrogen. In this article, We will learn how can we make a Smoke Detector Alarm using Arduino. When the MQ2 Gas Sensor will detect the smoke level high, the red led will glow and the buzzer will start. Components RequiredArduino UNO -> A microcontroller board based on the ATmega328PMQ2 Gas Sensor -> Which detects the level of smokeBuzzer -> A device that produces sound or alarm5V LED -> A Light-emitting diode that emits light 100ohm Resistor -> To resist the currentJumper Wires -> For connecting the elements of the circuitCircuit Diagramcircuit diagram In this circuit, the MQ2 gas sensor detects the level of smoke in the environment and sends the analog value to the Arduino. which compares the value with the standard value if the value is higher, Arduino sends the signal to the led and the red light will be illuminated and the buzzer will be started. otherwise, green led will be illuminated. Pins ConnectionArduino Digital pin 0 is connected with the (+ve) pin of BuzzerArduino Digital pin 1 is connected with the (+ve) pin of LED1(green)Arduino Digital pin 2 is connected with the (+ve) pin of LED2(red)Arduino Analog pin A0 is connected with A0 Pin of MQ2 Gas sensorArduino 5v Power pin is connected with VCC pin of Gas sensorArduino GND Power pin is connected with GND pin of Gas sensorArduino GND Power pin is connected with (-ve) pins of LED's with resistanceArduino GND Power pin is connected with GND pins of a Buzzer with resistanceArduino Code//stored pins in variables#define gasSensor A0#define buzzer 0#define ledGreen 1#define ledRed 2#define HIGH 600void setup() { //Initialising all pins pinMode(gasSensor, INPUT); pinMode(buzzer, OUTPUT); pinMode(ledGreen, OUTPUT); pinMode(ledRed, OUTPUT); }void loop() { //Read data from the sensorint gas_value = analogRead(gasSensor);//check data from sensor if there is smoke, if will execute otherwise else will executeif(gas_value > HIGH){ tone(buzzer,1000,500); digitalWrite(ledRed, HIGH); digitalWrite(ledGreen,LOW); }else{ noTone(buzzer); digitalWrite(ledGreen,HIGH); digitalWrite(ledRed, LOW);}delay(200); }Simulator : Comment More infoAdvertise with us Next Article How to make Smoke Detection Alarm using Arduino? iamabhijha Follow Improve Article Tags : Electrical Engineering IoT Arduino-projects Similar Reads Non-linear Components In electrical circuits, Non-linear Components are electronic devices that need an external power source to operate actively. Non-Linear Components are those that are changed with respect to the voltage and current. Elements that do not follow ohm's law are called Non-linear Components. Non-linear Co 11 min read 3-Phase Inverter An inverter is a fundamental electrical device designed primarily for the conversion of direct current into alternating current . This versatile device , also known as a variable frequency drive , plays a vital role in a wide range of applications , including variable frequency drives and high power 13 min read What is Vacuum Circuit Breaker? A vacuum circuit breaker is a type of breaker that utilizes a vacuum as the medium to extinguish electrical arcs. Within this circuit breaker, there is a vacuum interrupter that houses the stationary and mobile contacts in a permanently sealed enclosure. When the contacts are separated in a high vac 13 min read Introduction to Internet of Things (IoT) - Set 1 IoT stands for Internet of Things. It refers to the interconnectedness of physical devices, such as appliances and vehicles, that are embedded with software, sensors, and connectivity which enables these objects to connect and exchange data. This technology allows for the collection and sharing of d 9 min read Difference between IoT and M2M 1. Internet of Things : IOT is known as the Internet of Things where things are said to be the communicating devices that can interact with each other using a communication media. Usually every day some new devices are being integrated which uses IoT devices for its function. These devices use vario 3 min read Top 25 New Technology Trends in 2025 Curious about which tech trends will shape our world in 2025? As we speed through an era of rapid technological advancements, understanding the most impactful developments can give you an edge in adapting to the future. How will innovations like generative AI, 5G, and sustainable tech transform indu 15+ min read Sensors in Internet of Things(IoT) Generally, sensors are used in the architecture of IOT devices. Sensors are used for sensing things and devices etc. A device that provides a usable output in response to a specified measurement.The sensor attains a physical parameter and converts it into a signal suitable for processing (e.g. elect 7 min read Power Electronics Power electronics is the technology for efficient conversion, control, and management of electric power and to control the flow of electrical energy. Power electronics are used in everything from laptop chargers to inverters driving electric vehicles and renewable energy systems.Power electronics ma 10 min read Communication Models in IoT (Internet of Things ) IoT devices are found everywhere and will enable circulatory intelligence in the future. For operational perception, it is important and useful to understand how various IoT devices communicate with each other. Communication models used in IoT have great value. The IoTs allow people and things to be 3 min read Linear Variable Differential Transformer (LVDT) The LVDT stands for Linear Variable Differential Transformer. It converts the Linear motion into an electrical signal using an inductive transducer. Due to its superior sensitivity and accuracy over other inductive transducers, the LVDT is extensively used in many different fields. For measuring lin 10 min read Like