changed temp type to int16_t to prevent temp calc errors