Linear expansion
Heating the bar increases the length and moves the pointer. If the roller is of small radius the movement of the end of the rod is amplified by the movement of the tip of the long pointer.