Threshold sensor not turning on


even though the temperature is out of range of threshold sensor but still it is not being turned on.

The sensor turns on when it is within the upper and lower levels, not outside it.

how to invert this behaviour?

Why?

Need to create a email notification if temperature is out of range.

Trigger on the sensor state changing to off, rather than to on.