Bianca Maniglia still remembers the little rooster hanging in her grandmother’s kitchen in São Carlos — its feathers shifting from blue to pink as storms rolled in. Decades later, that childhood memory sparked a breakthrough in food safety. Now a professor at the University of São Paulo’s São Carlos Institute of Chemistry, Maniglia and her team have created a tiny, biodegradable sensor that changes color when moisture sneaks into food packaging. It could help families and food makers see — at a glance — when snacks like cookies start to lose their crispness.
Moisture is the enemy of crunch. Once it seeps into packaging, foods go stale fast — but there’s no easy way to tell without opening the bag or using lab tools. That’s where the new starch-based sensor comes in. Shaped like a small cylinder, it’s made from a porous material called cryogel, formed by freezing and then freeze-drying a starch gel. This process leaves behind a sponge-like structure that reacts quickly to humidity. When the sensor absorbs water vapor, it shifts from blue to pink. When it dries out, it turns blue again — all thanks to cobalt chloride, a compound that changes color when it binds with water.
The team tested the sensor with cream crackers, which go soft within hours if stored in humid conditions. In just seconds, the sensor responded to rising moisture levels, and the color change matched exactly with the loss of crispness in the crackers. That real-time feedback could help manufacturers monitor storage and shipping conditions — or let consumers decide whether a package has been exposed to damp air.
"What set this study apart was having a larger surface area for the sensor, making it highly sensitive and allowing us to observe different humidity conditions inside the packaging," Maniglia explains. Right now, the sensor can’t touch food directly because cobalt chloride isn’t food-safe. But the team is already working on a safer version using natural pigments from fruits like jabuticaba, a Brazilian berry. These plant-based dyes change color with pH shifts, which could make them perfect for tracking meat spoilage too.
The research, published in the journal Food Chemistry, opens the door to smarter, more sustainable packaging. If adapted for mass use, these sensors could cut down on food waste by showing people exactly when a product is still good — no guesswork needed. And it all started with a weather-changing rooster from the 1980s.
