Read temperature and pressure from Sensirion SHT4x sensors in Elixir.
iex> {:ok, sht} = SHT4X.start_link(bus_name: "i2c-1")
{:ok, #PID<0.2190.0>}
iex> SHT4X.measure(sht)
{:ok,
%SHT4X.Measurement{
dew_point_c: 25.10097138951667,
humidity_rh: 61.4077578051088,
temperature_c: 33.54358043153172,
timestamp_ms: 7747487
}}
For details, see API reference.