Smart packaging verifies freshness of meats and poultry