hydrogen sensor

hi

i want some help to make a hydrogen sensor. first please excuse me because of my bad English, i am Iranian
i want a hydrogen sensor. i search the web and first funded i should use MQ8 sensor and i found the program needed for it for arduino in the link below,

(there is just a program in the page please see it)

but when i wanted to buy it i found because of situation of my space and adequate i need, i should use TGS 813, my first question is can i use the same program for it, i mean, now that the sensor has changed doesn't it make any problem?? and can i use the same program? does it work?
i am not very good at arduino and i know just a little about electronics. my second question is please tell am i right or not about what i say.
as i understood, i should buy the package in the link below that is a TGS 813 for arduino

http://www.ebay.com/itm/Japan-Figaro-TGS813-TGS-813-Combustion-Gas-Sensor-Methane-Butane-For-Arduino-Pi-/121341617822

then buy a arduino for example uno arduino and program it with the program that was in the first link

thanks a lot
ali zamani

All that code does is calculate a curve : pow ( 10 , ( ( ( log ( rs_ro_ratio ) - pcurve [ 1 ] ) / pcurve [ 2 ] ) + pcurve [ 0 ] ) ) ) ;
That curve could match the curve of the sensor, but those sensors are not very accurate. To calibrate them you need a certain percentage of the hydrogen you want to measure. Those sensors are also sensitive for more than just hydrogen.

MQ-8 : Heater voltage 5V, RL can be 10k.
TGS-813 : Heater voltage 5V, RL can be 10k.

I think they are almost the same.

Warning : when you want to measure Hydrogen, you may never use a sensor with a heater. It could ignite the hydrogen. These kind of sensors can be used to measure air quality.

thank you Mr Peter_n

but if my hydrogen density is not high and there is no probability of explosion, as i said, can i just buy that package and program that code to an uno arduino or it needs some more parts and instruments

It only needs a resistor, the "RL". About 10k.

The sensor can be used indoors to measure the pollution.
It can be used to tell if there is more ore less pollution. To measure the pbm or percentage, you need to calibrate it with a known concentration of hydrogen. But it will not be accurate.

The sensor needs to be turned on for day, that is the preheat time.
http://playground.arduino.cc/Main/MQGasSensors

Some MQ sensors are on a small board with a OpAmp. Without knowing the schematic, I can't tell what that is for.