Programm Code to Control an MQ 2 sensor with ARM 7

Hello guys,
can somebody have a Programm Code which i can use to controll a MQ 2 sensor it will be helpfull. i m using ARM Microcontroll, but when someone have it with Arduino it will also o.k

Thx for Your help :wink: