A Gas Sensor Device for Oxygen and Carbon Dioxide Detection