A method for controlling environmental parameters of a patient environment. The method comprises: acquiring physiological sensor data using at least one physiological sensor in a pulse oximeter; acquiring environmental sensor data corresponding to at least one environmental parameter via at least one environmental sensor; determining by an environment controller if the acquired environmental sensor data satisfy at least one alert criterion; adjusting by the pulse oximeter the physiological sensor data to correct for the effects of the at least one environmental parameter if the acquired at least one environmental sensor data satisfies the at least one alert criterion; determining if an environment controller is capable of adjusting the at least one environmental parameter; adjusting the at least one environmental parameter if the environment controller is capable of adjusting the at least one environmental parameter; correlating the at least physiological sensor data and the at least one environmental sensor data to obtain a correlation data; and updating the at least one alert criterion based on the obtained correlation data.