DHT11 is not the best starting point, because the HDC1080 has I2C interface, but the DHT11 has a one-wire interface.
One sensor listed on the I2C page would be a better starting point.
Ahhh, . . . hadn't realized the interface difference. Thanks for that tidbit, @AkosLukacs
Maybe the BMP280 Environment sensor code snippet would better assist here:
© Espruino, powered by microcosm.
Report a problem