Boosted by advances in sensors and artificial intelligence, a new generation of machines is automating a tech-averse industry.