heater method

void heater(
  1. bool heater
)

Enables or disables the heater on the sensor to heat/evaporate any condensation. This command can destroy the sensor, if the heater runs too long.

Implementation

void heater(bool heater) {
  if (heater) {
    _writeCommand(sht31HeaterEnable);
  } else {
    _writeCommand(sh31HeaterDisable);
  }
}