 float newPwmDuty             =    0; // adc variable für
 
 
-int LowerLevel = 0;
-int HigherLevel = 0;
-unsigned long previousMillis = 0;
-unsigned long currentMillis = 0;
-int intervalHigh = 5000; //TODO: modify so it is 30 second intervals - probably needs to be in ms
-int intervalLow = 20000; //TODO: modify so it is 120 (2min) intervals
+// All Values for TIME setting, 3 in total: Heater /Smoker /timer (input) **********************************
+
+int LowerLevelHeater = 0;
+int HigherLevelHeater = 0;
+
+int LowerLevelSomker = 0;
+int HigherLevelSomker = 0;
+
+
+unsigned long previousMillisHeater = 0;
+unsigned long currentMillisHeater = 0;
+
+unsigned long previousMillisSmoker = 0;
+unsigned long currentMillisSmoker = 0;
+
+unsigned long previousMillisTimer = 0;
+unsigned long currentMillisTimer = 0;
+
+
+double intervalHighHeater = 10000; // modify so it is 5 second intervals - probably needs to be in ms -- 10sec
+double intervalLowHeater = 60000; // modify so it is 20 seconds (2min) intervals$ ---1 min
+
+double intervalHighSmoker = 2000; // modify so it is 5 second intervals - probably needs to be in ms --30sec
+double intervalLowSmoker = 120000; // modify so it is 20 seconds (2min) intervals$ --- 5min
+
+int smokerCounter = 0; //used to determine how many pulses the smoker does
+
 boolean ovenState = false; //TODO: unless you can read ovenState you'll need to keep track everywhere it is changed
-
-
-
+boolean smokerState = false; //TODO: unless you can read ovenState you'll need to keep track everywhere it is changed
+boolean runSmoker = 0; // inside RUN state check variable, if smoker was set in SETTING state
 
 // Initialization **********************************************************
 // The setup function runs once when you press reset or power the board


static stm_substate_t         stm_SubState;
static stm_substate_time_t    stm_time_SubState;



// Private function prototypes ***********************************************

// PWM  *****************************************************************

// initialize the timer1 interrupt for the frequency variable output
// Timer3.initialize(33333);                   // initialize timer1, and set a 33.333ms period -> 30Hz
 
//   Timer3.pwm(RELAIS_HEATER, pwmDuty);     // setup pwm on pin 9, 50% duty cycle

