Are you able to interface at this time? (no?) e.g. As the link is to the supplier page, has the purchase been made, or are we still speculating at this point?
If yes, what are the results of just trying the snippet for the common temp/humid sensor:
If no, use the source and modify as needed, as @AkosLukacs points out. It appears that @DrAzzy and I agree, after I viewed that source.
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