diff --git a/DHT.h b/DHT.h index c3ab67f..d22c276 100644 --- a/DHT.h +++ b/DHT.h @@ -47,7 +47,7 @@ #define DHT21 21 /**< DHT TYPE 21 */ #define AM2301 21 /**< AM2301 */ -#if (TARGET_NAME == ARDUINO_NANO33BLE) +#if defined(TARGET_NAME) && (TARGET_NAME == ARDUINO_NANO33BLE) #ifndef microsecondsToClockCycles /*! * As of 7 Sep 2020 the Arduino Nano 33 BLE boards do not have