isHeaterEnabled method

bool isHeaterEnabled()

Checks if the heater on the sensor enabled.

Implementation

bool isHeaterEnabled() {
  return ((i2c.readByteReg(i2cAddress, configHearerControlAddress) &
                  heaterControlMask) >>
              heaterControlPosition) ==
          1
      ? false
      : true;
}