A program comprises a code for implementing a method for regulating the temperature of an environment containing a product when the program is run in a computer system. The method includes measuring an environment temperature; detecting a product temperature; comparing the product temperature with a reference temperature; and varying the environment temperature on the basis of the outcome of the comparing. The detecting includes acquiring the product temperature internally of the product near its outside surface.