Ok, so in this case, it makes most sense to do the operation from the point of view of the BP with the pair of cubes. Like this:
There is a collision box around each cube.
I can do a version just from the point of view of the ‘sensor’ if you like. But that involves ‘component overlap component’, not casting, and is the hard way to do things.