I face an issue with my dht22 and rtc program.
I would like to create a program which would display on SerialMonitor the temperature and humidity with the time pulled from rtc.
Separate programs for DHT and RTC works perfectly, however when I combine them, the DHT value for temp and humidity is nan. Of course time is displaying fine.
When I remove the part of the code responsible for RTC from the void setup, the DHT is working fine.
If you ever faced similar issue, or if you have any idea how to fix it, please let me know.
I am attaching the two version of the program and libraries I use.
Thank you in advance for your help!
DHT-sensor-library-master.zip (18.6 KB)
RTClib-master.zip (28.2 KB)
DHT_RTC_1.ino (1.12 KB)
DHT_RTC_2.ino (1.2 KB)