Use your forum account to login.


TOP Contributors

  1. MikroElektronika Team (743 codes)
  2. Shawon Shahryiar (262 codes)
  3. Alcides Ramos Zambrano (170 codes)
  4. S P (67 codes)
  5. Dany (66 codes)
  6. MikroBUS.NET Team (35 codes)
  7. NART SCHINACKOW (34 codes)
  8. Armstrong Subero (26 codes)
  9. Roman Toropov (26 codes)
  10. FOURNET Olivier (25 codes)

Most Downloaded

  1. Timer Calculator (95183 times)
  2. FAT32 Library (49992 times)
  3. Network Ethernet Library (44886 times)
  4. USB Device Library (34991 times)
  5. Network WiFi Library (32186 times)
  6. FT800 Library (28012 times)
  7. GSM click (21755 times)
  8. PID Library (21578 times)
  9. microSD click - Example (17762 times)
  10. GSM 2 click (14777 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back

MQ Sensor Library Project



Author: Michael Havenga

Last Updated: 2019-01-12

Category: Measurement

Downloaded: 48 times

Not followed.

This project demonstrates the use of a few MQ Sensors. It enables the user to program a device once, thereafter the COM Port is used to change between devices. This provides some degree of convenience when testing and using the devices.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "MQ Sensor Library Project" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "MQ Sensor Library Project" changes.

Do you want to report abuse regarding "MQ Sensor Library Project".

  • Information
  • Comments (0)

Download Example [133.60KB]


mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Example Blog

To the users,

The MQ Sensor library project takes the following libraries AirQuality click, CO Click, LPG Click, Alcohol Click, and combines them into a single project. We claim no ownership of the code, as we have used the existing code provided by Mikroe.

By default, the EasyPIC v7 will need an LCD and atleast one of the Mikroe Click boards inserted into slot 1. The code preseumes 5Vdc, but you can change this to 3v3 if required. You will need a a MikroC for PIC license to be able to compile the code if you make any changes.

To change the device, you then send a value over the comport to the PCB and it changes the device that it is reading.

0 - AirQuality click, 1 - CO Click, 2 - LPG Click, 3 - Alcohol Click

Any problems, please use the forum to request assistance.


Fever click


Fever click measures your body temperature with the accuracy of 0.1°C (37°C to 39°C). The click carries MAX30205 human body temperature sensor. Fever click is designed to work on a 3.3V power supply. It communicates with the target MCU over I2C interface.

[Learn More]

Distance Sensor, LDR Sensor, Temperature Sensor, DVM, with Proteus Simulations 100%


This project contains different types of sensors , and each sensor is simulated in GLCD with progress bars. Easy to use with menu to allow user to select the required sensor, tested and simulated in Proteus.

[Learn More]

Temp-Hum click


Temp-Hum click carries ST’s HTS221 temperature and relative humidity sensor. The chip comprises a capacitive sensing element and a 16-bit ADC. The board communicates with the target MCU through mikroBUS I2C interface (SCL, SDA), with an additional interrupt (INT). The board uses a 3.3V power supply.

[Learn More]