https://s3-us-west-2.amazonaws.com/secure.notion-static.com/4e135189-59a1-4cb9-8803-659c67b0a15e/Untitled.png

센서는 DHT22로 실습하였다.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/8f24987e-eab4-436b-8e0c-f8ffea327aa0/Untitled.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/8f608376-5bb5-4821-9b5e-b10b561340f6/Untitled.png

pi@raspberrypi:/ $ sudo apt-get install git
Reading package lists... Done
Building dependency tree       
Reading state information... Done
git is already the newest version (1:2.20.1-2+deb10u3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pi@raspberrypi:~ $ git clone <https://github.com/adafruit/Adafruit_Python_DHT.git>
Cloning into 'Adafruit_Python_DHT'...
remote: Enumerating objects: 325, done.
remote: Total 325 (delta 0), reused 0 (delta 0), pack-reused 325
Receiving objects: 100% (325/325), 98.35 KiB | 1.02 MiB/s, done.
Resolving deltas: 100% (176/176), done.
pi@raspberrypi:~ $
  1. cd Adafruit_Python_DHT
  2. sudo apt-get update