Ks0043 keyestudio MQ-5 Gas Sensor

From Keyestudio Wiki
Jump to: navigation, search


The gas sensitive material used in MQ-5 gas sensor is SnO2, which is of lower electrical conductivity in clean air.
When there is combustible gas in the environment where sensor resides, the electrical conductivity of the sensor increases with the increase of the combustible gas concentration in the air.
The change of electrical conductivity can be converted to the output signal corresponding to that of the gas concentration by using a simple circuit.
The sensitivity of MQ-5 gas sensor to propane, propane and methane is quite high, and the methane and propane can be well detected.
This sensor can detect a variety of combustible gases, especially natural gas, making it a low-cost sensor for a variety of applications.



It has high sensitivity to liquefied gas, natural ga`s and city gas, almost no response to ethanol or smoke, which makes it excellent in anti-alcohol and anti- smoke interference.


  • Heating Voltage (VH): AC or DC 5±0.5V
  • Loop Voltage (VC): up to 24V DC
  • Load Resistance (RL) : 2KΩ
  • Resistance in Cleaning Air (Ra): ≤4000KΩ
  • Sensitivity (S=Ra/Rdg): ≥4(in 1000ppmC4H10)
  • Response Time (tres) : ≤ 10S
  • Recovery Time (TREC): ≤ 30S
  • Detection Range: 50-10000ppm

Connection Diagram


Sample Code

 Reads an analog input on pin 0, prints the result to the serial monitor 
 This example code is in the public domain.

void setup() {

void loop() {
  int sensorValue = analogRead(A0);
  Serial.println(sensorValue, DEC);



Note: The above screenshot data is only for reference


  • Video


  • PDF and Code


Buy from