Class: IoT::DHT22

Inherits:
DHTxxSensor show all
Defined in:
lib/iot/dht_sensor.rb

Overview

DHT22 - senior model, higher presicion

Instance Method Summary collapse

Methods inherited from DHTxxSensor

#name, #read_data

Methods inherited from HumitureSensor

#humidity, #read_data, #to_s

Methods inherited from TemperatureSensor

#celsius, #fahrenheit, #kelvin, #read_data, #reaumur, #temperature, #to_s

Methods inherited from DigitalReceptor

one_wire_file

Methods inherited from Receptor

#model_name, #name, #read

Constructor Details

#initialize(pin) ⇒ DHT22

Returns a new instance of DHT22.



37
38
39
# File 'lib/iot/dht_sensor.rb', line 37

def initialize(pin)
  super(pin, 22)
end