Hi suwanseu,
You may find information about calibration and configuration in these posts:
viewtopic.php?f=15&t=3408viewtopic.php?f=15&t=1801viewtopic.php?f=15&t=2764viewtopic.php?f=15&t=392viewtopic.php?f=15&t=2447viewtopic.php?f=15&t=2328viewtopic.php?f=15&t=2174viewtopic.php?f=15&t=2093viewtopic.php?f=15&t=2095viewtopic.php?f=15&t=1946viewtopic.php?f=15&t=1867viewtopic.php?f=15&t=1828viewtopic.php?f=15&t=1159Although the typical range of the CO2 sensor is 350~10000ppm, since 350ppm is approximately the CO2 concentration in a normal environment, you will find an increase in the output voltage when measuring concetrations bellow that, though in the manufacturer's documentation is no information about how the sensor behaves in this situations (this means you would need to calibrate the sensor under those conditions).
Regarding the code you showed, it seems correct but we will need the rest of it to check if there is some problem before.
Regards.