A method of controlling a heating, ventilation, and air-conditioning, HVAC, system, the method comprising: successively for at least two HVAC devices of a plurality of HVAC devices associated with the HVAC system: • controlling the HVAC device in accordance with a set target HVAC temperature value which is different from an environmental temperature value, • wherein the other HVAC devices of the plurality of HVAC devices are deactivated or running with unvarying running parameters, and • for at least two environmental sensors of a plurality of environmental sensors, determining whether one or more environmental parameters detected by the respective environmental sensor change, wherein determining whether one or more environmental parameters detected by the respective environmental sensor change comprises the environmental sensor detecting a temperature gradient value while the HVAC device is controlled in accordance with the set target HVAC temperature; • for each HVAC device of the at least two HVAC devices, determining a respective weight value for each environmental sensor correlated with the HVAC device using the temperature gradient values detected by the environmental sensors correlated with the HVAC device; for at least one environmental sensor of the at least two environmental sensors, correlating the at least one environmental sensor to the HVAC devices of the at least two HVAC devices for which a change of the one or more environmental parameters is determined; and controlling the HVAC system to change at least one environmental parameter associated with the at least one environmental sensor using the HVAC devices of the at least two HVAC devices correlated with the at least one environmental sensor and their respective weight value determined for the at least one environmental sensor. successively for at least two HVAC devices of a plurality of HVAC devices associated with the HVAC system: • controlling the HVAC device in accordance with a set target HVAC temperature value which is different from an environmental temperature value, • wherein the other HVAC devices of the plurality of HVAC devices are deactivated or running with unvarying running parameters, and • for at least two environmental sensors of a plurality of environmental sensors, determining whether one or more environmental parameters detected by the respective environmental sensor change, wherein determining whether one or more environmental parameters detected by the respective environmental sensor change comprises the environmental sensor detecting a temperature gradient value while the HVAC device is controlled in accordance with the set target HVAC temperature; • for each HVAC device of the at least two HVAC devices, determining a respective weight value for each environmental sensor correlated with the HVAC device using the temperature gradient values detected by the environmental sensors correlated with the HVAC device; • controlling the HVAC device in accordance with a set target HVAC temperature value which is different from an environmental temperature value, • wherein the other HVAC devices of the plurality of HVAC devices are deactivated or running with unvarying running parameters, and • for at least two environmental sensors of a plurality of environmental sensors, determining whether one or more environmental parameters detected by the respective environmental sensor change, wherein determining whether one or more environmental parameters detected by the respective environmental sensor change comprises the environmental sensor detecting a temperature gradient value while the HVAC device is controlled in accordance with the set target HVAC temperature; • for each HVAC device of the at least two HVAC devices, determining a respective weight value for each environmental sensor correlated with the HVAC device using the temperature gradient values detected by the environmental sensors correlated with the HVAC device; for at least one environmental sensor of the at least two environmental sensors, correlating the at least one environmental sensor to the HVAC devices of the at least two HVAC devices for which a change of the one or more environmental parameters is determined; and controlling the HVAC system to change at least one environmental parameter associated with the at least one environmental sensor using the HVAC devices of the at least two HVAC devices correlated with the at least one environmental sensor and their respective weight value determined for the at least one environmental sensor.