Design and diagnosis of automated crop management system for organic agriculture