Well sure it's possible to use a laser rangefinder. The code's in python, open and easy to learn and change. Problem is that I don't think you can get either method of detection and still get a printer out for under $100.