This study addresses the issue of adjusting the focus of LiDAR sensors, primarily used in autonomous driving, due to the current increase in accident rates. The research aims to automate the production of lenses with a consistent focus for LiDAR sensors through a smart factory system. To achieve this, we intend to utilize artificial intelligence-based computer vision recognition technology to adjust focus size in real-time through a feedback process. Consequently, this research aims to prevent accidents in autonomous driving and enhance the advantages for LiDAR sensor manufacturers as suppliers.