The DHT22 is a basic, low-cost digital temperature and humidity sensor. It uses a capacitive humidity sensor and a thermistor to measure the surrounding air and spits out a digital signal on the data pin (no analog input pins needed). It’s fairly simple to use but requires careful timing to grab data. Here’s a guide on using the DHT22 with a Raspberry Pi, from Pi My Life Up:
You can even wire this sensor up to 20 meters away from your Pi without losing its signal. This allows you to track the humidity and temperature of areas without your Pi’s heat affecting its reading. It also means you can wire the sensor where you may not have power for the Raspberry Pi.
This humidity and temperature sensor is the cheaper version of the popular DHT22 sensor. The DHT11 has a worse temperature and humidity range while also sacrificing accuracy. It makes up for this by being a little bit cheaper, so if you have a use case where you don’t need accuracy and want to save some money, you can use the DHT11.
No comments:
Post a Comment