diff --git a/main/peripherals/sensors/bme280.cpp b/main/peripherals/sensors/bme280.cpp
index b3722227d50bc52de8a620936e6e167672ac09b7..55bd2b7a2f11d446124abec4c9d86a4148a5b67d 100644
--- a/main/peripherals/sensors/bme280.cpp
+++ b/main/peripherals/sensors/bme280.cpp
@@ -10,7 +10,6 @@ typedef struct {
 
 static std::vector<bme280_config_t> cfgs;
 
-#include "esp_log.h"
 static void measured(void *ignored) {
     std::string topic;
 
diff --git a/main/peripherals/sensors/bme280.h b/main/peripherals/sensors/bme280.h
index 6d9265f5a5561346308cd6c87a9a4ba32e304e2a..af16946ccc92237bd51919ada2639fe9472a6866 100644
--- a/main/peripherals/sensors/bme280.h
+++ b/main/peripherals/sensors/bme280.h
@@ -8,6 +8,7 @@
 
 #include "freertos/FreeRTOS.h"
 #include "freertos/task.h"
+#include "esp_log.h"
 
 #include "driver/gpio.h"