Automatic control of food and biological processes