It's made up of two different metals bonded together, which expand by different amounts as they heat up. As the temperature changes, the bimetallic strip curves more or less tightly (contracts or expands) and the pointer, attached to it, moves up or down the scale.