lib/sensors.js
function (valueKey, signed) {
  return function (bytes) {
    var result = {};
    result[valueKey] = misc.bufferToInt(bytes, signed);
    return result;
  };
}
function (valueKey, signed) {
  return function (bytes) {
    var result = {};
    result[valueKey] = misc.bufferToInt(bytes, signed);
    return result;
  };
}
function ( valueKey , signed ) { return function ( bytes ) { var result = { } ; result [ valueKey ] = misc . bufferToInt ( bytes , signed ) ; return result ; } ; }
build a function that takes in some bytes, parses them as an integer, and returns an object with that value assigned to the given key.
build a function that takes in some bytes parses them as an integer and returns an object with that value assigned to the given key .