Sensor for measuring up to 50cm with an accuracy of +/-2 milimiter or better

Hi everybody.
I need to measure distances up to 50 centimiters with an accuracy at 50centimeters of +/-2 milimiter or better over polished bronze.

Which sensor should I use?

Thanks in advance for your help!

you could try TOF sensors such as the VL53L1X, e.g.

how large is the target? anything else in the area which could upset the senor readings?

Thanks for your help horace.

The sensor you recommended (VL53L1X) is not suitable, because it has (as stated in it´s datasheet in page 17-> ) a ranging error (defined as accuracy+repetibility errror ) of apprximately 20-25milimeters, and that is very big compared to the 2 milimeters of accuracy that I need.

Do you have any other suggestions?

The size of the trget will vary between 0.5 meters x 0.5 meters and 2 meters x 2 meters. There wont be anything upseting the sensor readings.

I found in practice these devices required calibrating and I also averaged readings over 10 samples

have a look at ST's range of proximity sensors

also worth looking at industrial Ultrasonic Sonar Distance Sensors