CO2 Sensor Sketch resets randomly

This is the sensor I am using: