#define DEBUG_PRINT(...) BLYNK_LOG1(__VA_ARGS__)

I am currently doing a Gas detector system using MQ2 sensor and humidity sensor. I use the DHT.h lib and it like kinda have error with the settings.h file. When i verify the code, it shows the error as shown below:

In file included from C:\Desktop\Smart_Gas_Detector\Smart_Gas_Detector.ino:19:
C:\Arduino library\libraries\DHT_sensor_library/DHT.h:37: warning: "DEBUG_PRINT" redefined
   37 | #define DEBUG_PRINT(...)                                                       \
      | 
In file included from C:\Desktop\Smart_Gas_Detector\BlynkEdgent.h:9,
                 from C:\Desktop\Smart_Gas_Detector\Smart_Gas_Detector.ino:18:
C:\Desktop\Smart_Gas_Detector\Settings.h:95: note: this is the location of the previous definition
   95 |   #define DEBUG_PRINT(...)  BLYNK_LOG1(__VA_ARGS__)

Use a different library for your DHT sensor.

Pete.

Thank you Pete

Best
John

1 Like

Hi,
I have the same problem. Currently I have installed the ‘DHT sensor library’ (1.4.6 version) by Adafruit. Which new DHT sensor library did you installed to avoid the warning?
Thanks!