Are you considering using the esp-idf?
<a href="https://github.com/espressif/esp-idf" rel="nofollow">https://github.com/espressif/esp-idf</a><p>I'm developing a product based on the esp32. Once I got my mind around the IDF, it handles a lot of the productization element.<p>Specifically it has a means for handling config at compile time, allowing for more flexibility without the need for a new version of the code per update.
With the DHT series of sensors supported in this firmware we made pretty bad experiences in regards to accuracy and lifetime. It also uses a non standard protocol and not eg i2c.<p>I think one of the best sensors for temperature and humidity is the Sensirion SHT3x which we use successfully in our open source Air quality kit [1] and had hardly any one that failed.<p>[1] <a href="https://www.airgradient.com/open-airgradient/kits/" rel="nofollow">https://www.airgradient.com/open-airgradient/kits/</a>