MQ2 Gas Sensor - Calucation of Rs

Grove is a modulated, ready-to-use tool set.
Much like Lego, it takes a building block approach to assembling electronics.

Moderators:, violet, jeremy882, crail.lyu969

Post Reply
Posts: 2
Joined: Mon Dec 31, 2018 8:31 pm

MQ2 Gas Sensor - Calucation of Rs

Post by bert.carremans » Sat Jan 26, 2019 4:28 am


on the product page for the MQ2 gas sensor, the following formula to calculate RS_gas is displayed.
RS_gas = (5.0-sensor_volt)/sensor_volt; // omit * RL
When I apply Ohm's Law, the formula to calculate RS_gas should be RL * (Vc - VS)/VRL.
So why is the multiplication with RL omitted? Is RL equal to 1?

Thanks for your help!

User avatar
Posts: 10
Joined: Mon Jan 28, 2019 11:08 pm
Location: Philadelphia, PA

Re: MQ2 Gas Sensor - Calucation of Rs

Post by » Fri Feb 01, 2019 6:31 pm


Welcome to the forum. Basically RL is (Load Resistance) and it is used to compute air resistance. As in the code it is considering that sensor is placed in the clean atmosphere that's why RL is considered to be 1.

Reference: float RS_air; // Get the value of RS via in a clear air
RS_air = (5.0-sensor_volt)/sensor_volt; // omit * RL

I hope it will help you.

Thank you.

Post Reply