In 1879, Anna Baldwin patented a milking machine that replaced hand milking - her milking machine was a vacuum device that connected to a hand pump. This is one of the earliest American patents, however, it was not a successful invention. Successful milking machines appeared around 1870.