/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@chirimen/sht30@1.0.3/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).SHT30=t()}(this,(function(){"use strict";var e=function(e,t){t||(t=68),this.i2cPort=e,this.i2cSlave=null,this.slaveAddress=t};return e.prototype={init:async function(){this.i2cSlave=await this.i2cPort.open(this.slaveAddress)},readData:async function(){var e;await this.i2cSlave.write8(44,6),await(e=100,new Promise((t=>setTimeout(t,e))));var t=await this.i2cSlave.readBytes(6),i=175*(256*t[0]+t[1])/65535-45;return{humidity:100*(256*t[3]+t[4])/65535,temperature:i}}},e}));
//# sourceMappingURL=/sm/2f07905901112cc3941bb1f356916a401750e47aca2f89c83b8f86328e008fec.map