Have you ever wondered how machines in factories know when to start, stop or change their operations without someone controlling every step? Behind many of these automated...