function HTU21D( i2c ) {
        this.i2c = i2c;

        // Possible resolutions
        this.RH_12_BITS_TEMP_14_BITS = 0x0; // Default after reset
        this.RH_8_BITS_TEMP_12_BITS = 0x1;
        this.RH_10_BITS_TEMP_13_BITS = 0x2;
        this.RH_11_BITS_TEMP_11_BITS = 0x3;

        this.i2cAddress = 0x40;

        // ID of the measuring timer, if asynchronous measuring  with getTemperature() or getHumidity()) is in progress.
        // null, if there is no current asynchronous meauring
        this.measuringTimerId = null;

        this.softReset(); // Soft reset is recommended at start according to the datasheet.
    }
/**
     * Creates a new HTU21D sensor instance
     * @param i2c Instance of the I2C Class, e.g. I2C1
     */
Creates a new HTU21D sensor instance
@param i2c Instance of the I2C Class, e.g. I2C1
Creates a new HTU21D sensor instance @param i2c Instance of the I2C Class e . g . I2C1
function HTU21D( i2c ) {
        this.i2c = i2c;
        this.RH_12_BITS_TEMP_14_BITS = 0x0; 
        this.RH_8_BITS_TEMP_12_BITS = 0x1;
        this.RH_10_BITS_TEMP_13_BITS = 0x2;
        this.RH_11_BITS_TEMP_11_BITS = 0x3;
        this.i2cAddress = 0x40;
        this.measuringTimerId = null;
        this.softReset(); 
    }
function HTU21D ( i2c ) { this . i2c = i2c ; this . RH_12_BITS_TEMP_14_BITS = 0x0 ; this . RH_8_BITS_TEMP_12_BITS = 0x1 ; this . RH_10_BITS_TEMP_13_BITS = 0x2 ; this . RH_11_BITS_TEMP_11_BITS = 0x3 ; this . i2cAddress = 0x40 ; this . measuringTimerId = null ; this . softReset ( ) ; }
Creates a new HTU21D sensor instance
 @param i2c Instance of the I2C Class, e.g.
Creates a new HTU21D sensor instance @param i2c Instance of the I2C Class e . g .
// Possible resolutions // Default after reset // ID of the measuring timer, if asynchronous measuring  with getTemperature() or getHumidity()) is in progress. // null, if there is no current asynchronous meauring // Soft reset is recommended at start according to the datasheet.