added new testcase - sensor value goes above max threshold then jumps below min threshold