 int ledPin = 13; // this is just for checking activity
 
 // setup sensor reading interval
-unsigned long prevMillis = 0;
-unsigned long interval = 1000;
+unsigned long prevMillis = 0; // initialize previous milliseconds variable
+unsigned long interval = 5000; // number of milliseconds to wait
 
 // Initialize settings
 void setup() {
+  // start serial
+  Serial.begin(9600);
+  
   // Initialize output pins.
   pinMode(ledPin, OUTPUT);
 

Arduino based self regulating kitchen garden
 
 */

#include <SHT1x.h>
#include <DHT.h>

// soil related setup
#define soilDataPin  3
#define soilClockPin 4
SHT1x soilSensor(soilDataPin, soilClockPin);
float soilTemperature;
float soilMoisture;

// air temperature related setup
#define DHTPIN 2        // Humidity and temperature sensor pin

    LDRValue = analogRead(lightSensorPin); // read light level from LDR
    airHumidity = airSensor.readHumidity(); // read humidity from DHT
    airTemperature = airSensor.readTemperature(); // read temperature from DHT
    sht.measure(&soilTemperature, &soilMoisture, &dewpoint);

  Serial.print("Temperature: ");
  Serial.print(temperature);
  Serial.print(" C, Moisture: ");
  Serial.print(moisture);
  Serial.print(" %, Dewpoint: ");
  Serial.print(dewpoint);
  Serial.println(" C");
  }

}
