In general, nothing but DJI stuff can be connected to DJI flight controllers.
If you want to “scan” an area you can use it independently of the DJI and retrieve the information.
The whole thing is not easy, it depend on the actual goal of your project.
Those sensors are actual sensors that can get information but you have to be able to use this information.