Self-powered fibers detect oil contamination and dangerous heat within milliseconds, offering faster response to environmental and safety hazards.