Researchers at UC Berkeley and the National Chiao Tung University in Taiwan have teamed up to make sure you never again pour spoiled milk into your morning coffee or Fruity Pebbles.

The researchers have developed a revolutionary dairy-carton technology: the new-and-improved milk cartons would be equipped with ‘smart caps’ that can detect bacteria, according to a report from the Huffington PostTo use the device, you would simply need to turn the carton enough that the milk splashes on the inside of the cap, and an indicator on the outside of the cap will tell you about the freshness of the gallon’s contents. Basically, if made available, the smart cap would remove all need to check expiration dates in the dairy aisle (which we all know are bullshit anyway).

https://twitter.com/uc_newsroom/status/625747486804606976

The caps would be 3-D printed and have the potential to be used in a number of perishable food items. “This 3D-printing technology could eventually make electronic circuits cheap enough to be added to packaging to provide food safety alerts for consumers,” co-director of the Berkeley Sensor and Actuator Center, Liewi Lin, told the Berkeley News. “You could imagine a scenario where you can use your cellphone to check the freshness of food while it’s still on the store shelves.” 

The project appears to be a ways away from hitting grocery shelves, but until then, keep putting your nose into that carton before you pour milk into your Cocoa Crispies.

[via Huffington PostBerkeley News]