Measure temperature using a resistor(Semihosting mode)