MQ-9 gas sensor strange results

Did you read the datasheet that it needs 5V and 1.5V ? I suppose your module only sets it at 5V.

This page has some basic information : Arduino Playground - MQGasSensors

D0 is the digital output, you can turn the potentionmeter for the comparator that makes D0 high at a certain level. Is the other pin an analog output ?