sht15_calc_humid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sht15_calc_humid(9) β€” like, the Kernel API Manual page, bestie πŸŽ€

okay so you found yourself in the kernel docs, section 9, and the function is sht15_calc_humid ✨ let's get into it


🌸 NAME 🌸

sht15_calc_humid β€” using last temperature convert raw to humid πŸ’– (yes that's the official wording, she's quirky like that)


✨ SYNOPSIS ✨

int sht15_calc_humid (struct sht15_data *data );

literally one argument, no drama 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • data β€” device state β€” that's the whole vibe, it's the device state, that's what you're passing in πŸ’…

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the tea β˜•: this is the temperature compensated version, as per section 4.2 of the data sheet. like, the sensor girlies know that raw humidity readings without temp compensation are not it, and this function handles that for you πŸ‘‘

The sensor is assumed to be V3, which is compatible with V4. no cap. The humidity conversion coefficients are shown in table 7 of the datasheet β€” go look at it, iykyk πŸ“–βœ¨

ngl, if you're using a sensor that is not V3-compatible, this assumption is doing a lot of heavy lifting, so double-check before you ship it πŸ™ˆ

🌈 SEE ALSO 🌈

bestie there are SO many friends in this family, buckle up 🎒

Kernel file ./drivers/hwmon/sht15.c, plus the whole squad:

like, the whole group chat showed up πŸ’€πŸ’–


k bye bestie, this page came from ./drivers/hwmon, dated October 2026 β€” mwah, slay, periodt πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from