Raspberry Pi practice problem · Sensors
Comfort zone
EasyBudget $8Python · gpiozero
A DHT22 on GPIO4 (with its 10 kΩ pull-up). Every 2 s print COMFY when the room is comfortable, NOT COMFY otherwise. Comfortable means both: temperature from 20 to 24 °C, and humidity from 40 to 60 %.
The test room starts at 22 °C / 50 %, turns humid (70 %) at 3 s, then hot but dry (26 °C, 50 %) at 7 s, then back to 21 °C at 11 s.