A new method to measure the thermal conductivity for the SPES project