/** * Get the current temperature in °C. * @return Temperature in °C. * @throws RuntimeIOException If an I/O error occurred. */ @Override public float getTemperature() throws RuntimeIOException { // Get the scaled value (voltage) float v = super.getScaledValue(); return (100 * v - 50) + tempOffset; } }