A box partly in front of a distance sensor need not hide the floor or ceiling behind it. The VL53L4CX component lets an ESPHome maker choose which detected object to report and ignore objects closer than a chosen minimum distance.

The component uses ST’s target-detection driver. In a bench comparison with a box about 20 centimetres away and a ceiling at 2.4 metres, that driver reported both objects while the simpler comparison reported only the box.

The work prepares a path for ratgdo’s Disco board to use ESP-IDF, Espressif’s development framework. Adoption by ratgdo is a separate step.