Hello, I am working on interfacing a CO2 sensor with an Android phone via Arduino. I'm using this toolkit called Amarino

http://www.amarino-toolkit.net/

So far I have the bluetooth module communicating with the arduino over serial and the phone can successfully connect to the bluetooth module. Now the CO2 sensor I plan on connecting to the arduino via serial as well, so after some reading I decided I needed to use a software serial implementation as my arduino the Duemilanove only has one serial.

Now communication with the co2 sensor involves a Master/Slave situation. I must send the CO2 sensor 8 hexadecimal bytes and then read seven hex bytes of which the 4th and fifth concatenated is the co2 concentration.

I have some code, but as this is my first Arduino and I just learned about serial communication I am unsure if I am going in the write direction code wise.