I would like to control oven temperature with a Raspberry Pi. I have a simple on-off control with deadband working well now. My challenge is I need to control the oven to different temperatures for different time periods: ie: 0 to 200F over a period of 6 hrs, cool to 125F over a period of 4 hrs, then back to 280F for 3 hrs. I hope to do this with a while loop but do not really understand how to proceed once my first setpoint and time has completed. I will count down the time with the time function, so once the first one zeros out, how do I proceed to the next setpoint/time ramp for the cooling phase? Any suggestions or if you could direct me to some code that is already built it will be great!