error in loop, debug code instead of real temperature value