Millions of tons of food are thrown away each year because the 'best before' date has passed. But this date is always a cautious estimate, which means a lot of still-edible food is thrown away. Wouldn't it be handy if the packaging could 'test' whether the contents are still safe to eat?