diff --git a/esphome/components/ld2450/ld2450.cpp b/esphome/components/ld2450/ld2450.cpp index b3e6c2be6f..e852a5d6a3 100644 --- a/esphome/components/ld2450/ld2450.cpp +++ b/esphome/components/ld2450/ld2450.cpp @@ -336,7 +336,7 @@ void LD2450Component::handle_periodic_data_(uint8_t *buffer, int len) { if (ss != nullptr) { val = this->decode_speed_(buffer[start], buffer[start + 1]); ts = val; - if (val > 0) { + if (val) { is_moving = true; moving_target_count++; }