60    unsigned long timerCalculated = (
unsigned long)1000 * 60; 
 
   69            Serial.print( millis() );
 
   70            Serial.print( F( 
" : " ) );
 
   71            Serial.println( F( 
"Humidifier finished! Cool-down timer start..." ) );
 
   85        Serial.print( millis() );
 
   86        Serial.print( F( 
" : " ) );
 
   87        Serial.println( F( 
"Cooling finished!" ) );
 
  100            timerCalculated = (
unsigned long)15 * timerCalculated;
 
  104            timerCalculated = (
unsigned long)30 * timerCalculated;
 
  108            timerCalculated = (
unsigned long)45 * timerCalculated;
 
  112            timerCalculated = (
unsigned long)60 * timerCalculated;
 
  116            timerCalculated = (
unsigned long)90 * timerCalculated;
 
  120            timerCalculated = (
unsigned long)120 * timerCalculated;
 
  124            timerCalculated = (
unsigned long)180 * timerCalculated;
 
  128            timerCalculated = (
unsigned long)300 * timerCalculated;
 
  132            timerCalculated = (
unsigned long)480 * timerCalculated;
 
  136            timerCalculated = (
unsigned long)720 * timerCalculated;
 
  140            timerCalculated = (
unsigned long)1440 * timerCalculated;
 
  159        Serial.print( millis() );
 
  160        Serial.print( F( 
" : " ) );
 
  161        Serial.println( F( 
"Timer elapsed, humidifier turning on..." ) );
 
unsigned long fogCoolDownTimer
This variable stores the last system time when the cool down event happened.
unsigned long fogMachineTimer
This variable is used for automatic humidification.
void fogMachineEnable()
Enable the humidifier.
void fogMachineInit()
Initialize the fog machine( humidifier ).
bool fogCoolDown
If the cool down procedure still in progress, this flag will be true.
unsigned long fogLastTurnOn
This variable stores the last system time when the humidifier was turned on by any reason.
void fogMachineUpdate()
Update the fog machine state.
#define HUMIDIFIER_DURATION
Humidifier turn on duration in ms. The humidifier will be turned on for this amount of time.
#define HUMIDIFIER_PIN
The humidifier is connected to pin 6 on the Arduino.
#define HUMIDIFIER_COOL_DOWN
Humidifier cool down time. The humidifier has to be turned off for this amount of time before turning...