@Override
    public void loop() throws ConnectionLostException {
      try {

        float raw = mTempInput.read();

        float R = 10000 / raw - 10000; // R1 = (R2*Vi/Vo) - R2; Voltage Divider

        float steinhart;
        steinhart = R / Ro; // (R/Ro)
        steinhart = (float) Math.log(steinhart); // ln(R/Ro)
        steinhart /= B; // 1/B * ln(R/Ro)
        steinhart += 1.0 / (TEMPERATURENOMINAL + 273.15); // + (1/ To)
        steinhart = (float) (1.0 / steinhart); // Invert
        steinhart -= 273.15; // convert to Cº | celsius = kelvin - 273.15

        String tempString = String.format("%.2f", steinhart) + "ºC";

        setText(tempString);

        Thread.sleep(1000);

      } catch (InterruptedException e) {
        ioio_.disconnect();
        setText(e.getMessage());
      } catch (ConnectionLostException e) {
        setText(e.getMessage());
        throw e;
      }
    }