In metals, the primary reason for this behavior is the increased thermal vibrations of the metal lattice. As temperature rises, atoms in the metal lattice vibrate more vigorously, which impedes the movement of electrons and increases the material’s electrical resistance. Consequently, the electrical conductivity decreases.
In semiconductors, the electrical conductivity is governed by the number of charge carriers (electrons and holes) available for conduction. As the temperature increases, more electrons are excited from the valence band to the conduction band, creating more charge carriers and increasing conductivity.
What a strange series of questions. 5 or six questions in a row, some diverging in unrelated directions, but all finishing with this same question about semiconductors that is very basic knowledge. I feel like we are being trolled by some AI chat bot, but to what purpose?!?