Carbon dioxide monitor with datalogger