Study of temperature distribution in the ground