For semiconductors, the major factor affecting the value of resistivity when temperature changes is
Resistivity vs temperature for semiconductors:
Hence, the number of free electrons is the major factor affecting the value of resistivity when the temperature changes.