Before diving into the software aspect, it is essential to understand the component itself. The MQ2 is a versatile sensor widely used in robotics and home automation projects. It is a Metal Oxide Semiconductor (MOS) type sensor, also known as Chemiresistors.

After successfully importing the part, the next step is designing the circuit. The MQ2 breakout board typically comes with 4 pins, though some versions may vary. Here is how you should connect them in Fritzing:

You now have everything you need. By successfully locating the , you have unlocked the ability to create accurate, shareable, and professional circuit diagrams.

| MQ2 Sensor Pin | Connect to Arduino Uno | | :--- | :--- | | | 5V Pin | | GND | GND Pin | | DO | Digital Pin 7 (or any digital pin) | | AO | Analog Pin A0 |