Elixir driver for the SHT3x (SHT30, SHT31, SHT35) series temperature and humidity sensors from Sensirion.
{:ok, i2c_pid} = ElixirALE.I2C.start_link("i2c-1", 0x44)
[{:ok, temp}, {:ok, humidity}] = SHT3x.single_shot_result(i2c_pid, :high, true)
If available in Hex, the package can be installed
by adding sht3x
to your list of dependencies in mix.exs
:
def deps do
[
{:sht3x, "~> 0.1.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/sht3x.
- increase test + typespec coverage/correctness
- more docs