anchor.diff:            case get_read_mode(Config) of
               {ok, ReadMode} ->
   
  -              SensorMode = <<TempMode:3, PressMode:3, ReadMode:2>>,
  +              <<SensorMode>> = <<TempMode:3, PressMode:3, ReadMode:2>>,
                 case i2c:write(I2cRef, <<?CTRL_MEAS_REG, SensorMode>>) of
                   ok -> {ok, SensorMode};
   
  
positive.code:     _ ->  {error, data_match}  
    end.
    
  
  %
  % Read the sensor data.
  %
  -spec read_sensor(I2cRef :: pid(),
                    Private :: list(private_attr())) -> list() | {error, term()}.
                     
  read_sensor(I2cRef, Private) ->
  
    % If read mode is 'forced', need to write read mode before each read
    % and wait for sensor to return to sleep mode before reading the value
    {ok, SensorMode} = attrib_utils:get_value(Private, sensor_mode),
    case (SensorMode band ?SENSOR_MODE_NORMAL) /= ? 
  
    % Data readout is done by starting a burst read from 0xF7 to 0xFC (temperature and pressure) 
    % or from 0xF7 to 0xFE (temperature, pressure and humidity). 
  
negative.code:       {read_mode, {normal}},  % Valid values: normal, forced
        {filter_coeff, {0}},    % Valid values: 0,2,4,6,8,16
        {standby_time, {500}},  % Valid values: 0.5, 62.5, 125, 250, 500, 1000, 10, 20 Msecs 
        {temp_mode, {16}},       % Valid values: 0, (disabled), 1,2,4,8,16 (oversampling rate) 
        {press_mode, {16}},      % Valid values: 0, (disabled), 1,2,4,8,16 (oversampling rate) 
        {humid_mode, {16}},      % Valid values: 0, (disabled), 1,2,4,8,16 (oversampling rate)
        {deg_f, {true}},
        {inch_merc, {true}},
        {temp_offset, {0.0}},
        {press_offset, {0.0}},
        {humid_offset, {0.0}} 
  