Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Latest commit

 

History

History
24 lines (18 loc) · 768 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 768 Bytes

SHT4X

Hex version CI

Read temperature and pressure from Sensirion SHT4x sensors in Elixir.

Usage

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.