Adjusted sensor type
This commit is contained in:
parent
670bcda19e
commit
d20f9bc0ad
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ import Adafruit_DHT
|
||||||
|
|
||||||
class Dht22Sensor:
|
class Dht22Sensor:
|
||||||
def __init__(self, pin):
|
def __init__(self, pin):
|
||||||
self.sensor = Adafruit_DHT.DHT22
|
self.sensor = Adafruit_DHT.AM2302
|
||||||
self.pin = pin
|
self.pin = pin
|
||||||
|
|
||||||
def read(self):
|
def read(self):
|
||||||
|
|
Loading…
Reference in a new issue