by measuring the temperature