GrovePi v0.2.0 GrovePi.DHT
Read temperature and humidity from the Grove DHT sensor.
Example use:
iex> pin = 3
iex> {:ok, pid}=GrovePi.DHT.start_link(pin)
{:ok, #PID<0.199.0>}
iex> GrovePi.DHT.read_temp_and_humidity(pin)
{23.0, 40.0}
Summary
Types
Functions
read_temp_and_humidity(pin, module_type \\ 0)
read_temp_and_humidity(GrovePi.pin, module_type) :: {temp, humidity}