MQ-2 problem

Obviously this is all guesswork, because you’ve provided no code, but my guess is that you’ve fallen into the trap of choosing an analog pin which is connected to ADC2…

Pete.