Measuring the temperature while transporting a pallet