Interfacing of CO2 sensor module with Arduino ATMega328 through ttl

i am unable to get any output at the end: i m looking for the data on serial port. pls correct me if anything worng.

#include <SoftwareSerial.h>
SoftwareSerial mySerial(2, 3); // RX, TX
String val= ""; //holds the string of the value
double co2 =0; // holds the actual value
uint8_t buffer[128];
uint8_t ind =0;
byte initPort[] = {0x80,0x02,0x00,0x7E};
void setup() {
// initialize serial:
Serial.begin(19200);
// print the string when a newline arrives:
mySerial.begin(19200);
Serial.write(initPort, sizeof(initPort));
int hexIn = Serial.read();

}

void loop() {
//print the value on serial
while(buffer[ind-1] != 0x80)
{
if(mySerial.available())
{
buffer[ind] = mySerial.read();
ind++;
}
}
Serial.print( "Co2 = ");
Serial.print(co2);
Serial.println(" mmHg");
ind=0; //Reset the buffer index to overwrite the previous packet
}