make the method name of getting the temperature measurements more generic.