Using temperature sensor to turn on pump milliseconds after temperature spike(help elderly woman)

Does such a thing already exist? If so, how does it figure out when to run the pump?