1918

I have made software for YDLidar for use on PC with C, Python and Visual Basic, but also for use on Raspberry Pi, ESP8266 and even Arduino Uno

The YDlidar is cheap and comes with some software for the PC.
Sorry, the discription is in Dutch, but the software usage is evident.
For connecting to a PC, I used the USB-board; when I use a microcontroller (Raspberry Pi, ESP or Arduino), I connect it directly. For ESP and Arduino I also use a (software) serial connection to the PC for debugging. Software can be extended (actions if distance too small). Careful though, the Arduino is only just fast enough (or maybe just not quite fast enough)...