The following error happens when compiling in the latest version of Arduino IDE (2.3.5) likely related to the switch from Arm Mbed to Zephyr RTOS.
DHT_sensor_library/DHT.cpp:51:7: error: 'microsecondsToClockCycles' was not declared in this scope 51 | microsecondsToClockCycles(1000); // 1 millisecond timeout for