Download and Install the MQ2 Gas Sensor Library for Proteus Software for Simulation
The MQ2 gas sensor is widely used in electronics projects to detect gases like LPG, CO, and methane. If you want to simulate this sensor in Proteus software, you need to install its library. In this guide, we will walk you through the step-by-step process of adding the MQ2 gas sensor library to Proteus for smooth simulation.

Step-by-Step Guide to Adding the MQ2 Gas Sensor Library to Proteus
Step 1: Download the MQ2 Gas Sensor Library
To begin, download the MQ2 gas sensor library from the link provided. The downloaded file will contain two important folders:
- Library Folder
- Model Folder
Step 2: Copy the Library Files
- Open the Library Folder inside the downloaded file.
- Copy the file inside this folder.
Step 3: Paste the Library File in Proteus
- Locate the Proteus icon on your desktop.
- Right-click on it and select Open File Location.
- Go back to the main Proteus folder.
- Find and open the Library Folder.
- Paste the copied file here.
Step 4: Copy and Paste the Model File
- Go back to the downloaded file and open the Model Folder.
- Copy the file inside this folder.
- Again, go to Proteus’ main folder by right-clicking the Proteus icon > Open File Location.
- Locate the Model Folder.
- Paste the copied file here.
Step 5: Restart Proteus Software
To apply the changes, close Proteus (if already open) and restart it.
Step 6: Search and Add the MQ2 Sensor in Proteus
- Open Proteus software.
- In the component search bar, type MQ2 Gas Sensor.
- Click on the MQ2 sensor from the search results.
- Click OK and place it on the workspace.
- Zoom in to see the three pins:
- VCC (Power Supply)
- GND (Ground)
- Signal Pin
Step 7: Adjust Smoke Level in Simulation
- The MQ2 sensor in Proteus allows you to increase or decrease smoke levels using buttons.
- The + button increases smoke detection, while the – button decreases it.
- You can use this sensor with Arduino or other electronic circuits in Proteus.
Conclusion
By following these simple steps, you can successfully install and use the MQ2 Gas Sensor Library in Proteus. This will help you simulate gas detection projects without needing real hardware. If you found this guide helpful, share it with others and explore more Proteus tutorials.