Check out PiLIDAR for one of many options:

https://github.com/PiLiDAR/PiLiDAR