IR Sensors

Use VL53L0X sensor it is very good if range is 300mm to 500mm (~19 inches ) between sensor and the object. After that range the beam will spread and it will cause problem