Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.
/ sht4x Public archive
forked from elixir-sensors/sht4x

Read temperature and pressure from Sensirion SHT4x sensors (SHT40) in Elixir.

License

Notifications You must be signed in to change notification settings

smartrent/sht4x

 
 

Repository files navigation

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.

About

Read temperature and pressure from Sensirion SHT4x sensors (SHT40) in Elixir.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Elixir 100.0%