The output of the MQ2 gas sensor changes depending on the gas it is exposed to. When exposed to reducing gasses, the surface density of adsorbed oxygen decreases, allowing electrons to be released into the tin dioxide and allowing current to freely flow through the sensor. When exposed to combustible gasses, the potential barrier increases, preventing electric current flow.