It looks like you're new here. If you want to get involved, click one of these buttons!
Choose the one that lists the hardware you have.
I don't know that distance sensor or if anything is different in its API. So you are on your own figuring out if you need to rewrite some code or not. Start with looking up the library that is used and what that says it supports and how.
What is the Bluetooth name of it?
Only that, no other characters at the end of the name?
A guess could be you haven't used the correct GPIO pins for external wiring as they are documented in configuration.h for the board setting you also chose there?
Looked in configuration.h for pinout/GPIO to use ?
If GPIOLEFT is set to 13 that is the pin to ground to set it to left
Or leave open and set it to LF as you did in the config file instead. But don't ground pins AND set in config file.
I really have no idea what the error message is but guess maybe incorrect edits in config file or incorrect board settings in Arduino IDE or some library missing in it
Read and edit the config file properly.
Go back to the untouched files which compiles fine. Then do one single change of the changes you need to do and test compile. One more single change, test compile. And so on. Until you get your compilation error. Then you know better what to continue to pursue
Again, do one edit at a time. Is the error with the sensor or the board. Then one can continue to dig for the issue.