diff --git a/src/shared/sensors/BME280/BME280.cpp b/src/shared/sensors/BME280/BME280.cpp
index 233e6b14d41d0904b183741e77761df16920bb20..a1a8150a5cfcda0ef39912bdc51ceac18d62755f 100644
--- a/src/shared/sensors/BME280/BME280.cpp
+++ b/src/shared/sensors/BME280/BME280.cpp
@@ -112,7 +112,7 @@ bool BME280::init()
 
     // If after the 5 iterations the sensor didn't report the configuration set
     // I can report the init error
-    if (readConfigResult)
+    if (!readConfigResult)
     {
         LOG_ERR(logger, "Device configuration incorrect, setup failed");