An air quality detecting system comprising: a collection unit configured in a preset position on a robot, which is used to detect the air condition in immediate surroundings of the robot, and then to form an output of collection data; a processing unit connected to the collection unit, which is configured to receive the collection data and simultaneously receive the storage data which is output by a storage unit and is matched to the collection data, and then to form a processing result in accordance with the collection data and the storage data, as well as to simultaneously output a control signal; a storage unit connected to the processing unit, which is configured to store the processing result; an execution unit, whose control end is connected to the processing unit by a communication module to execute, under the effect of the control signal, actions that match the control signal; an input/output device connected to the processing unit, which is used to receive and output the processing result, or to receive control instructions input by users, and then to form a control signal and transmit it to the processing unit; the collection unit comprises a temperature sensor, which is configured to collect the temperature information of the immediate surroundings of the robot, and then to form an output of temperature signals; if the environment temperature is too low or too high, the processing unit sends out a control command, according to present temperature signal, to adjust a temperature adjustment device, to maintain the temperature at a level which people feel comfortable; when indoor temperature ascends continually and exceeds threshold preset by the processing unit, the processing unit determines the heat source and sends a control signal to a sprinkler, the sprinkler is then initiated; the sprinkler then sprays liquid at the heat source to cool it down, the collection unit comprises a gas sensor, which is configured to collect gas composition, concentration information of immediate surroundings of the robot, and then to form an output of gas signals, the processing unit sends out control commands, according to present gas composition and concentration information, which is used to adjust an air purification unit, then, in turn adjusts harmful gas in the air. a collection unit configured in a preset position on a robot, which is used to detect the air condition in immediate surroundings of the robot, and then to form an output of collection data; a processing unit connected to the collection unit, which is configured to receive the collection data and simultaneously receive the storage data which is output by a storage unit and is matched to the collection data, and then to form a processing result in accordance with the collection data and the storage data, as well as to simultaneously output a control signal; a storage unit connected to the processing unit, which is configured to store the processing result; an execution unit, whose control end is connected to the processing unit by a communication module to execute, under the effect of the control signal, actions that match the control signal; an input/output device connected to the processing unit, which is used to receive and output the processing result, or to receive control instructions input by users, and then to form a control signal and transmit it to the processing unit; the collection unit comprises a temperature sensor, which is configured to collect the temperature information of the immediate surroundings of the robot, and then to form an output of temperature signals; if the environment temperature is too low or too high, the processing unit sends out a control command, according to present temperature signal, to adjust a temperature adjustment device, to maintain the temperature at a level which people feel comfortable; when indoor temperature ascends continually and exceeds threshold preset by the processing unit, the processing unit determines the heat source and sends a control signal to a sprinkler, the sprinkler is then initiated; the sprinkler then sprays liquid at the heat source to cool it down, the collection unit comprises a gas sensor, which is configured to collect gas composition, concentration information of immediate surroundings of the robot, and then to form an output of gas signals, the processing unit sends out control commands, according to present gas composition and concentration information, which is used to adjust an air purification unit, then, in turn adjusts harmful gas in the air.