Write the answer: What instrument was designed to measure variations in temperature by the expansion or contraction of a liquid or gas?
thermometer