Fixed typo in TemperatureMeasuringTask.
Reorganized application logic.