Automation for dairy managment