 #include "DS18B20.h"
 #include "OneWire.h"
 
-
+ 
 // Input pin where DS18B20 is connected
 int ds18b20Pin = D1;
 

double pointTemperature, actualTemperature, pidOutput;

// PID: Specify the links and initial tuning parameters
PID myPID(&actualTemperature, &pidOutput, &pointTemperature, 2, 5, 1, DIRECT);

// Timestamp of the last status events
unsigned long lastEventTimestamp;

        ds18b20.resetsearch();
        delay(250);
        
        return;  
    }     
    
    
    // Send event to the SparkCloud
    if (millis() - lastEventTimestamp >= 1000) {

        // Actual temperature in celsius
        actualTemperature = ds18b20.getTemperature();

        // Compute PID
        if(myPID.Compute()) {
            
            // Control relay
            analogWrite(relayPin, pidOutput);
        }
        
        // Convert values for output
        // convert pidOutput to 0-100
