getStatus method

int getStatus()

Returns the status of the sensor.

Implementation

int getStatus() {
  _writeCommand(sht31ReadStatus);
  sleep(Duration(milliseconds: 5));
  return i2c.readWord(i2cAddress, BitOrder.msbFirst);
}