View Source SHT4X.Measurement (sht4x v0.2.1)

One sensor measurement

Summary

Functions

Interprets one raw temperature/humidity message

Types

@type t() :: %SHT4X.Measurement{
  dew_point_c: float() | nil,
  humidity_rh: float(),
  quality: SHT4X.quality(),
  raw_reading_humidity: integer(),
  raw_reading_temperature: integer(),
  temperature_c: float(),
  timestamp_ms: integer()
}

Functions

@spec from_raw(<<_::48>>) :: t()

Interprets one raw temperature/humidity message

This returns a Measurement struct with the raw register values and their interpreted temperature and humidity. It does not apply any compensation so this is real temperature and humidity detected.