 
 #define trigPin 5
 #define echoPin 4
-int binHeight = 11.5;       //silo height is 18 cm
-float binPercent;
-float binPercenttwo;
-float binpercentThree;
-
+//ultrasonic variables
+int maximumRange = 50;
+long duration, distance, d1,d2,d3;
+int testDistance=15;
 
 const int pinRed = 9;        // initialize the danger pin
 const int pinNorm = 8;      // initialize normal pin


  DEBUG = true;         // enable debug serial

  //Initializing the Pins of the Ultrasonic Sensor (Trig pin as the output and Echo pin as the input)
  pinMode(trigPin, OUTPUT);
  pinMode(echoPin, INPUT);

  Serial.begin(9600);                  // starts the serial
  pinMode(pinRed, INPUT);             // initialize the Danger Pin
  pinMode(pinNorm, INPUT);           // initialize the Normal  Pin

    if (DEBUG)  Serial.println("Temp=" + String(t) + " *C");
    if (DEBUG) Serial.println("Humidity=" + String(h) + " %");

   if (d2>0){
       thingSpeakWrite(t, h, d2);                                     // Write values to thingspeak
   }
   
  }
