Ds18b20 and interrupt with anemometer

On a Arduino Mega board, I make a weather station application …
On the other hand, I have an interaction between the reading of the temperature with a DS18B20 and the interruption of the reading of the wind speed … everything seems to work well, except that the temperature Mini and Maxi when one lets turn a certain time, records temperatures at 0, 1000, -2000 ° C.
Do you have any research leads, or notices of errors in my code ??

I put my code as an attachment because it is too long to be added between tags …
Is this the right solution?


AWS_Basic_Web_Server_Sketch_Tpar_DS_BME_Force_vent_V2.ino (11.9 KB)

Already asked and answered here