Adruino MEGA Beginner

Hi
I m a Beginner of Arduino Mega programming.
I programmed a PID Regulator and I need now to writ a programm, that the maximal and minimal Temperatur and the maximal and minimal Power outputs.
This is my first topic. can someone help me!
thx in advance.

(deleted)