The MQ135 Gas Sensor library for Proteus is a widely used third-party simulation tool that allows you to test air quality monitoring systems without needing physical hardware. While Proteus does not include these sensors by default, libraries from sources like The Engineering Projects or The Electronics are considered standard for this purpose. ✅ Summary Review
Reliability: High for logic-based testing. It accurately simulates the interaction between the sensor and microcontrollers like Arduino.
Functionality: Most libraries use a "Test Pin" to simulate gas presence. Setting this pin to HIGH triggers the sensor output, allowing you to verify if your code and circuit react correctly to detected pollutants.
Accuracy: Simulated results are ideal for functional testing but won't replace real-world calibration, as the MQ135 is sensitive to multiple gases (CO2, Ammonia, Benzene) simultaneously.
Compatibility: Works across most Proteus versions (7 and 8) and supports various microcontrollers. 🛠️ Key Features
Multi-Gas Detection: Simulates sensitivity to NH3, NOx, alcohol, benzene, smoke, and CO2.
Dual Output Simulation: Supports both analog (varying voltage) and digital (high/low) signal simulation.
Simple Integration: Easily interfaces with the standard Arduino Library for Proteus to build full air quality monitors. 📥 Installation Steps
To make the library work, you must place the following files in your Proteus LIBRARY folder:
MQ135.LIB / MQ135.IDX: These allow Proteus to recognize the component in the "Pick Devices" menu.
MQ135.HEX: This is the "internal" code for the sensor. Critical Step: You must double-click the sensor in your schematic and link this .hex file in the "Program File" section for it to function.
📍 Folder Location: For Proteus 8, look in C:\ProgramData\Labcenter Electronics\Proteus 8 Professional\Data\LIBRARY. How to Add Arduino Gas Sensor Library in to Proteus 7 & 8
MQ135.LIB and MQ135.IDXLIBRARY folderNeed a direct link?
Search GitHub for: "proteus mq135" – repositories like “Wahaj-ali/MQ135-Proteus-Library” are often maintained.
Would you like a sample Proteus .DSN file with MQ135 already wired to an Arduino? mq135 gas sensor library for proteus download upd work
To add the MQ135 Gas Sensor to your Proteus simulation, you need to download and install a specific library file set, as the sensor is not included in the software by default. Download and Files
You can find the MQ135 library for Proteus through sites like The Electronics The Engineering Projects The download usually contains three essential file types:
: These define the component's appearance and behavior in the Proteus library database.
: This is the "internal firmware" for the sensor model required for the simulation to run properly in Proteus. Installation Steps Extract the Files : Unzip the downloaded library folder to access the Paste into Proteus Library Folder Navigate to your Proteus installation directory. : Typically located at
C:\ProgramData\Labcenter Electronics\Proteus 8 Professional\Data\LIBRARY ProgramData is often a hidden folder : Usually found at
C:\Program Files (x86)\Labcenter Electronics\Proteus 7 Professional\LIBRARY Restart Proteus
: If the software was open, close and reopen it to refresh the component list. Simulating the Sensor
: Search for "MQ135" in the component picker and place it on your workspace. Configuration : Double-click the sensor in Proteus. In the "Program File" field, browse and select the file that came with your download. : Since Proteus cannot detect real physical gas, use a Logic State Toggle Switch
connected to the "Test Pin" of the sensor. Setting this pin to simulates the presence of gas, triggering a output on the sensor's "OUT" pin. For the Arduino side of your project, you can use the MQ135 Arduino Library to handle the sensor readings and calibration in your code. Arduino Library List Are you planning to interface this sensor with an or a different microcontroller in your simulation?
To integrate the MQ135 gas sensor into your Proteus simulations, you must download a third-party library and manually add it to your software's system folders. The MQ135 is a critical component for air quality projects, capable of detecting ammonia, benzene, alcohol, and smoke. Download Links for MQ135 Library
You can find the necessary library files through several reputable community sources:
The Electronics: Provides a specialized MQ135 Gas Sensor Library specifically for Proteus simulation.
The Engineering Projects: Offers a Gas Sensor Library for Proteus that includes models for various MQ-series sensors. The MQ135 Gas Sensor library for Proteus is
GitHub Repositories: You can download raw library files directly from satyamkr80's GitHub or Karan-nevage's PROTEUS-LIBRARY, which contains a ZIP file of multiple sensor models. Step-by-Step Installation Guide
Once you have downloaded the ZIP or RAR file, follow these steps to install it:
Extract the Files: Open the downloaded package and extract the contents. You should see three primary file types: .LIB (Library), .IDX (Index), and often a .HEX file for the sensor's internal logic. Locate Proteus Library Folder:
Proteus 8: Navigate to C:\ProgramData\Labcenter Electronics\Proteus 8 Professional\LIBRARY.
Note: This folder is often hidden. Enable "Hidden Items" in your file explorer's View tab to see it.
Proteus 7: Go to the main installation directory, usually under Program Files (x86), and find the Library folder.
Copy and Paste: Copy the .LIB and .IDX files from your extracted folder and paste them into the Proteus LIBRARY folder.
Add Model Files (If applicable): If your download includes a .MOD file, paste it into the MODELS folder within the same Proteus directory.
Restart Proteus: If the software was open, close and restart it to refresh the component database. How to Use the MQ135 in Your Circuit
Search for Component: Go to 'Component Mode', click 'Pick from Library', and search for MQ135.
Configure the HEX File: Double-click the sensor on your workspace. Under the Program File field, select the folder icon and navigate to the .HEX file included in your download.
Simulate Gas Levels: Use the Test Pin on the sensor model. Connecting a Logic State or a button to this pin allows you to simulate high or low gas concentrations during the live run. Gas Sensor Library for Proteus - The Engineering Projects
You can download and install the MQ135 Gas Sensor Library for Proteus 7 or 8 by using the following files and steps. The library typically consists of three critical files: Download Links The Electronics [ ] Downloaded MQ135
: Offers a direct download for the MQ135 breakout library via their GitHub repository The Engineering Projects (TEP) : Provides a comprehensive Gas Sensor Library
that includes the MQ135 among other sensors like MQ-2 and MQ-7. : Individual files and library components can be found on satyamkr80's MQ135 repository Installation Steps Extract the Files : Unzip the downloaded folder to find the Locate Proteus Library Folder : Navigate to
C:\ProgramData\Labcenter Electronics\Proteus 8 Professional\LIBRARY . (Note: "ProgramData" is often a hidden folder). : Navigate to
C:\Program Files (x86)\Labcenter Electronics\Proteus 7 Professional\LIBRARY Paste Files : Copy and paste the files into the folder. If there is a separate
folder in your download, place those files in the corresponding directory in your Proteus installation. Restart Proteus
: Close and reopen Proteus to refresh the component database. How to Simulate Pick Component : In Proteus "Component Mode," search for and place it on your schematic. Load Hex File : Double-click the MQ135 component. In the Program File field, click the folder icon and select the file you downloaded earlier. : Most Proteus gas sensors include a "Test Pin." Use a Logic State Toggle Switch
on this pin to simulate the presence of gas (High = Gas detected, Low = Clean air). Do you need help with a specific Arduino code snippet to interface with this sensor in your simulation? MQ135 Gas Sensor Simulation in proteus - The Electronics
Under 'Program File', select the folder icon and locate the MQ135. hex file we saved earlier. * Select it and click 'Ok'. The Electronics MQ135-GAS-Sensor-Library-Proteus/MQ135.hex at main
Copy MQ135.LIB and MQ135.IDX into the LIBRARY folder.
Do not create subfolders – place them directly.
void setup() Serial.begin(9600); pinMode(13, OUTPUT);void loop() int sensorValue = analogRead(A0); float voltage = sensorValue * (5.0 / 1023.0); Serial.print("Gas Voltage: "); Serial.println(voltage);
// If voltage > 2V -> gas detected if(voltage > 2.0) digitalWrite(13, HIGH); else digitalWrite(13, LOW); delay(500);