 
 void loop() {
   getValues();
+
+  /*
+   * Calculate limits
+   */
   
   // clamp the envelope min/max, decay otherwise
   if (env_min > humidity) {

      break;
  }

  // print out the values for debugging/plotting
  Serial.print("humidity = ");
  Serial.print(humidity, 1);

#include <DHT22.h>

#define DHT22_PIN 6
