In this recipe, we will be using a DHT temperature and humidity sensor.
This sensor has 4 pins: VCC, Signal, unused, ground. The connection goes as follows:
3.3v (P1) -> VCC (V)
GND (P6) -> GND (G)
GPIO4 (P7) -> DATA (S)
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.