Hydrogel composites with pre-programmed shapes serve as environmental monitoring alarms and underwater actuators.