Use the correct USB cable. The USB cable will need to be able to transfer data and power. If you are using a data USB cable, a green led will be lit on the USB interface board.
To confirm the Lidar is connected, enter the following command in the Linux terminal.
The Lidar will show as ‘QinHeng Electronics HL-340 USB-Serial adapter’.
Test the Code
Copy the example code from this site.