Architecture of automatic monitoring system for fresh food quality using wireless sensor network