door.py: link to project with DHT code
The DHT20 examples online are specifically for Arduino and ESP, but not RPI. This person wrote up something that can read it. Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
b10dcbba57
commit
69b6bdcbf4
1 changed files with 3 additions and 0 deletions
3
door.py
3
door.py
|
@ -6,6 +6,9 @@ from datetime import datetime
|
|||
|
||||
# https://docs.python.org/3/library/datetime.html#datetime.datetime.now
|
||||
|
||||
# DHT22 with an rpi
|
||||
# https://web.archive.org/web/20200819162120/http://www.home-automation-community.com/temperature-and-humidity-from-am2302-dht22-sensor-displayed-as-chart/
|
||||
|
||||
# the door sensor
|
||||
door = Button(23)
|
||||
btn = Button(19)
|
||||
|
|
Loading…
Reference in a new issue