In SThM, a specialized probe with an integrated thermal sensor is scanned over the sample surface. The probe can be made from various materials, including silicon or platinum, and often features a resistive element that changes resistance with temperature. As the probe scans the sample, it either heats the surface locally or measures the temperature variations, depending on the mode of operation.