Show the max and min value

Hi,
try;

int maxtemp = 0 ;
int mintemp = 100;

It sounds like you are starting with mintemp already at 0.

Starting at 100, it will be instantly changed on the first time your code does the if.

Tom... :slight_smile:
EDIT (Damn missed it by that much.. lol)