Sensor to scan 2d surface

If the surface isn't flat, its not 2D