MQ7 sensor + Arduino Uno

at first sight the code looks OK

you are heating them up at the same time,.
Can the Arduino deliver enough power (or does the Arduino switch a separate power supply e.g. wit a transistor?