Analog Sensor Advice

Or a VL6180X...

nifty gagets - didn't know they existed.

Allan