An apparatus (200, 300) comprising: a humidity sensing component (213, 409) configured to generate a humidity level indication associated with a gaseous substance in a gas flow channel (202, 313), wherein the gaseous substance in the gas flow channel (202, 313) comprises water vapor; a dehumidifier component (209, 302) disposed along the gas flow channel (202, 313), wherein the dehumidifier component (209, 302) comprises a cooling element (211, 309, 411) in contact with the gaseous substance in the gas flow channel (202, 313), wherein the cooling element (211, 309, 411) is configured to decrease a temperature level in the gas flow channel (202, 313); a gas detecting component (205, 307) disposed downstream with respect to the dehumidifier component (209, 302) along the gas flow channel (202, 313); and a controller component in electronic communication with the humidity sensing component (213, 409) and the dehumidifier component (209, 302), wherein the controller component is configured to activate the dehumidifier component (209, 302) including the cooling element (211, 309, 411), characterized in that the dehumidifier component (209, 302) further comprises a filter component disposed underneath the cooling element (211, 309, 411) in the gas flow channel (202, 313), and in a vertical water channel (215, 315), wherein the gas flow channel (202, 313) intersects at least a portion of the vertical water channel (215, 315) defining a passage through which water vapor can be expelled from the apparatus (200, 300) without coming in contact with the humidity sensing component and the gas detecting component, and wherein the cooling element (211, 309, 411), when activated, causes water vapor to condense on a surface of the filter component. a humidity sensing component (213, 409) configured to generate a humidity level indication associated with a gaseous substance in a gas flow channel (202, 313), wherein the gaseous substance in the gas flow channel (202, 313) comprises water vapor; a dehumidifier component (209, 302) disposed along the gas flow channel (202, 313), wherein the dehumidifier component (209, 302) comprises a cooling element (211, 309, 411) in contact with the gaseous substance in the gas flow channel (202, 313), wherein the cooling element (211, 309, 411) is configured to decrease a temperature level in the gas flow channel (202, 313); a gas detecting component (205, 307) disposed downstream with respect to the dehumidifier component (209, 302) along the gas flow channel (202, 313); and a controller component in electronic communication with the humidity sensing component (213, 409) and the dehumidifier component (209, 302), wherein the controller component is configured to activate the dehumidifier component (209, 302) including the cooling element (211, 309, 411), characterized in that the dehumidifier component (209, 302) further comprises a filter component disposed underneath the cooling element (211, 309, 411) in the gas flow channel (202, 313), and in a vertical water channel (215, 315), wherein the gas flow channel (202, 313) intersects at least a portion of the vertical water channel (215, 315) defining a passage through which water vapor can be expelled from the apparatus (200, 300) without coming in contact with the humidity sensing component and the gas detecting component, and wherein the cooling element (211, 309, 411), when activated, causes water vapor to condense on a surface of the filter component.