There are plenty of existing theoretical and empirical models that relate the temperature at different depths in the pavement (given the different layers' thermal properties) and the air temperature. The most used is the one incorporated within the AASHTO Mechanistic-Empirical Pavement Design Guide.