The Code

The Code

For the servos, I references David's with always referenced Mark

For the Temperature Sensor, I used code that evaluated the temperature sensor which Michael wote

#include <Servo.h>        // Must include the servo library to call the servo functions.
Servo myservo;            // creates a servo object
                          // maximum of 8 servo objects, need one for each servo 
int servoPosition = 0;    // variable to store the servo position 
int readValue = 0;
int attachedTrue = 0;

int value = 0;

double conversion = .0049;

double temp;
int STOP=0;
 

void setup() {

  Serial.begin(9600);
  pinMode(13, OUTPUT); 
  myservo.attach(9);                   // Attaches our servo object to pin 9 on the arduino.
  myservo.write(85);
}

void loop() {

  value = analogRead(A0);

  convert();

  //myservo.write(85);            

  //delay(500);
  
  servo();

}

void convert() {

 temp = conversion*value*200 - 273;

 Serial.println(value);

 

}

void light() {

  
  digitalWrite(13, HIGH);   // set the LED on
  
  delay(1000);              // wait for a second
  
  digitalWrite(13, LOW);    // set the LED off
  
  delay(1000);              // wait for a second
  }
  
  
void light2(){
    
    digitalWrite(13, HIGH);   // set the LED on
  
    delay(100);              // wait for a millisecond
    
    digitalWrite(13, LOW);    // set the LED off
    
    delay(100);              // wait for a millisecond
    
  }
  

void servo(){

  if (value<=294){
    light();  
    //myservo.write(0);                    // Rotate full rotational servo counterclockwise at full speed.
                                         // For a standard 180 degree servo, 0 means the servo will turn
                                         //   to the 0th degree position.                                 
  
    //delay(100);                         // Executes the previous function for 1000 ms.
  
    //myservo.write(90);                   // No movement position for full rotational servos.
                                         // This value is NOT always stationary. When the arduino & servo were initially
                                         //   plugged in, the stationary value was ~86. After a few minutes of being plugged
                                         //   in, this value increased gradually to reach 90 as the stationary point.
    
  }
    
    else if (value >=295&&STOP==0){
    STOP= 1;
    light2();
    myservo.write(180);       // Rotate full rotational servo clockwise at full speed.
                                         // For a standard 180 degree servo, 180 means the servo will turn
                                         //  to the 180th degree position
    delay(4000);       
    myservo.write(85);        
  
   // myservo.detach();                    // Detaches the servo object from the pin assigned in void setup().
   // delay(100);                                     
    //myservo.attach(9);                   // Can call myservo.attach(pin) to reattach the servo object to an Arduino pin. 
    
    //readValue = myservo.read();          // Will return the last value sent to the write() function. In this case, 180.
    //attachedTrue = myservo.attached();   // Returns 1 if the servo object is attached to any Arduino Pin, 0 otherwise.
  
  }
  
  else {
    //delay (100);
  }
}