need clarification with ! (not) function

karotto:
if x >70 && x <5 I do not get the LED to light if x = nan (like my temperature sensor got disconnected)

Thanks much

I doubt x simultaneously will be higher than 70 && (and) lower than 5. Try || (or) instead of &&.