We present an alternative optical method to estimate the temperature during the cooling process of a liquid using digital holographic interferometry (DHI). We make use of phase variations that are linked to variations in the refractive index and the temperature property of a liquid. In DHI, a hologram is first recorded using an object beam scattered from a rectangular container with a liquid at a certain reference temperature. A second hologram is then recorded when the temperature is decreased slightly. A phase difference between the two holograms indicates a temperature variation, and it is possible to obtain the temperature value at each small point of the sensed optical field. The relative phase map between the two object states is obtained simply and quickly through Fourier-transform method. Our experimental results reveal that the temperature values measured using this method and those obtained with a thermometer are consistent. We additionally show that it is possible to analyze the heat-loss process of a liquid sample in dynamic events using DHI.