How do I detect a temperature drop on a sensor. In Pleg?

I have something I have to stop if there is a temperature drop on one and the same sensor.
I can not figure out how to save the sensor value so I can use this and see if it’s higher than current value.
Please help me, I’ve tried everything I’ve been able to figure out.

I have not tried this and there may be something more elegant.

Use the STATE variable to define a sequence (a,b,a,b,a,b…)

Store the current temp to A or B as the state flips
Atemp: When state=a then temp
Btemp: when state=b then temp

Tempdrop
If(state=a and Btemp>Atemp) or (stat=b and Atemp>Btemp)

Again, haven’t tried it but at first blush it should work.

Sorry, but I do not understand what will be the answer here.
Is there a possibility that I get it described in the process that should be done?

You can see the two spikes where it suddenly jumps up, peaks and drops at a lower rate.
Using the Multisensor you can also control lights based on motion or how dark it is and heat lamps based on temperature.