deviceId added as parameter for readTemp