I use a htu21d which is not only cheaper than a dht22 but also more precise/stable (means less fluctuations ) beside using i2c which makes life easier!
There are a whole bunch of other sensors that could be used, but that’s not what they asked. I’ve tried BME280’s, DS18B20s, SHT31D’s, various Xaomi sensors, and even a really high precision TMP117.
Comparing the temperature readings of all those sensors to the TMP117 the DHTs came out on top every time. Both in bang for buck, reliability and accuracy.
Admittedly, buying my sensors from Aliexpress could be half the problem. There seem to be a lot of manufacturer rejects on the market.
My point is that the DHT22 (AM2302) is a perfectly acceptable sensor for indoor measurements.
That’s very interesting. For sure a bme280, sht30x or htu21d can’t do wonders but in my experience they are all superior to a dht22.
Also if you look around the internet you will most likely find the dht22 (am2302) always at the last position in terms of accuracy even though it’s more expensive than other (comparable) sensors.
For example the am2302 (dht22) in this example is the one which is most off (like 10-20%)
I actually had my last dht22 exchanged (couple of years ago) because it was regularly maxing out (showing 95-100% humidity) inside even when the real humidity was like 25% (or more) less.