Creating hysteresis with DHT11 sensor..

ive looked at the library files and cant see if thats the issue.

It is.

case DHT11:
      f = data[2];

f is the float temp read, but the data array is declared as uint8_t, so it will always be a whole number.