Alternatively, try creating a casing using TTAN or another stainless, non-flammable material; place a tube inside it, fill the tube with DSTW, and freeze it using FRZZ—though this might reduce the sensor's sensitivity.
that might work for the sensor, and then adding a laser that if it goes through, it creates the spark to activate the sprinkler.