Class: IoT::DHT11

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

Overview

DHT11 - junior model, lower 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) ⇒ DHT11

Returns a new instance of DHT11.



30
31
32
# File 'lib/iot/dht_sensor.rb', line 30

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