The inverse opal is a chip with micro-channels sensitive to liquids of specific surface tensions. By changing color, the chip reveals exposure to the specific substance. Sophie Bushwick reports