I tried to program the Digispark to use it with gas sensor MQ-2.
Somebody can help me?

Thanks to all

Sure, what is the problem? As long as you dont use one of the pins used for usb, it should work the same as on full sized arduino