code: function (actualValueKey, options) {
    return function (bytes) {
      var result = {};
  
      result['min_' + actualValueKey] = options.min_actual || 0;
      result['max_' + actualValueKey] = options.max_actual;
      result[actualValueKey] = misc.scaleValue(misc.bufferToInt(bytes), options);
  
      return result;
    };
  }
docs: build a function that takes in some bytes, parses them as an unsigned int, then scales the returned value between the minimum and maximum values provided, then returns an object with min_{{key}}, max_{{key}}, and {{key}} values.