10W Laser Auto Focus Adjustment

Sometimes I have crooked wood panels that curve up or down.
This means that it is not cut cleanly at the highest/deepest points. Depending on the point on which I have set the focus.

The 10w laser module has an automatic height measurement. Would it not be possible to use this sensor during the laser process to track the focus depending on the height of the workpiece?

If the system used lidar yes, but it doesn’t so you can’t.