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:
Vincent Batts 2024-11-15 21:12:40 -05:00
parent b10dcbba57
commit 69b6bdcbf4
Signed by: vbatts
GPG key ID: 71F35A9A3D56A0EA

View file

@ -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)