Min/Max temp reset at midnight

Min/Max temp reset at midnight and further reduction of code footprint