How to Build a Smarter Factory?