NSThM operates by using a sharp probe, typically a scanning thermal microscope tip, which is brought into close proximity with the sample surface. The probe detects thermal signals emitted from the sample due to localized heating or intrinsic thermal properties. These signals are then converted into electrical signals, which are processed to generate a thermal map of the sample.