 
 // last reset as epoch
 int last_reset = 0;
+
+// Tinker Variables
+int tinkerDigitalRead(String pin);
+int tinkerDigitalWrite(String command);
+int tinkerAnalogRead(String pin);
+int tinkerAnalogWrite(String command);
 // 
 #define DHTPIN D4
 #define DHTTYPE DHT22

		last_reset = Time.now();
	    System.reset();
	  }

}


void setup() {
	
	// Tinker Functions
	Spark.function("digitalread", tinkerDigitalRead);
    Spark.function("digitalwrite", tinkerDigitalWrite);
    Spark.function("analogread", tinkerAnalogRead);
    Spark.function("analogwrite", tinkerAnalogWrite);
    
    Serial.begin(9600);
    Serial.println("Initializing sensors...");
