Which principle best explains how this thermometer works?