Low-cost way of shining a wide line of light, kind of like some bar code scanners do
A LED laserline will do exactly what do want, and may cost about $15-$20 at your local supplier, or cheaper if you look on eBay or Aliexpress. Really, there's no point in making it more complex.

Here's an example.