anchor.diff:        Humid = not_active;
   
       {ok, forced} ->
  -      % Need to set the sensor read mode to forced
  -      % and wait for it to return to sleep mode before reading it
  -      {ok, SensorMode} = attrib_utils:set_value(Private, sensor_mode),
  -      case i2c:write(I2cRef, <<?CTRL_MEAS_REG, SensorMode>>) of
  -        ok -> ok;
  -
  -        
  +      case read_sensor_forced(I2cRef, Private) of
  +        {ok, Temp, Press, Humid} ->
  +          Status = normal,
  +          Value = Temp,
  +          ok;
  +
           {error, Reason} ->
  -          error_logger:error_msg("Error: ~p Setting sensor mode~n", 
  +          error_logger:error_msg("Error: ~p Reading sensor forced mode~n", 
                                     [Reason]),
             Status = proc_error,
             Value = not_active,
  
positive.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, {1}},       % Valid values: 0, (disabled), 1,2,4,8,16 (oversampling rate) 
        {press_mode, {1}},      % Valid values: 0, (disabled), 1,2,4,8,16 (oversampling rate) 
        {humid_mode, {1}},      % Valid values: 0, (disabled), 1,2,4,8,16 (oversampling rate)
        {deg_f, {true}},
        {temp_offset, {0.0}},
        {press_offset, {0.0}},
        {humid_offset, {0.0}} 
  
negative.code: -define(SENSOR_DATA_LEN, 8).
  
  
  % The active measurement time depends on the selected values for 
  % humidity, temperature and pressure oversampling. 
  % See the BME280 Data sheet for formulas to calculate typical and maximum
   
  -define(MAX_MEASUREMENT_TIME_MS, 100).
  
  
  %
  % Configure the sensor
  %
  