The venus flytrap plant captures its prey when it senses the presence of an insect on the tips of its leaves. An amphiphilic molecule acts in a similar manner by changing its structure when heated slightly and, then, reverting to its original form when cooled.