Thermistor & Servo Circuit Code

I am creating a thermistor, servo circuit where IF the temperature goes ABOVE 65-70C, the servo sweeps. The servo will click on a mouse. Then once it reaches back down to 48-52C, the servo sweeps again. But when the temperature goes above 65-70C, it sweeps, then it hits that range again and it sweeps. When the temperature is decreasing, I can't have the servo sweep or else it defeats the purpose. I need it to NOT sweep when the temperature is increasing. There should only be 2 sweeps in the system, but as of right now there are 3. Also, when it is in that range of temperature, it sweeps multiple times. I need it to sweep ONCE. It is supposed to imitate a click of a mouse for a mac. Below are the code and the circuit diagram. I have multiple attempts of an if statement, but they all have a 3rd sweep.
Any ideas would be amazing!

//library code:

#include <LiquidCrystal.h>

#include <Servo.h>

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

//Servo

Servo servo;

int pos = 0;

//Temp

double temp;

int ThermistorPin;

void setup() {

 //LCD Message

 Serial.begin(9600);

 lcd.begin(16, 2);

  lcd.setCursor(0, 0);

 lcd.println("Temperature: ");

 //Servo

 servo.attach(10);

 servo.write(0);

 //Led

 pinMode(7, OUTPUT);

}

void loop() {

 digitalWrite(7, LOW);

 ThermistorPin = analogRead(A0);

 temp = (double)ThermistorPin / 1024;

 temp = temp * 5;

 temp = temp - 0.5;

 temp = temp * 100; 

 delay(500);

 lcd.setCursor(0,1);

 Serial.println(temp);

 lcd.setCursor(0, 2);

 lcd.println(temp);

 //Servo  

 if(temp <= 65 && temp >= 45){

   digitalWrite(7, HIGH);

  servo.write(0);

   delay(400);

   servo.write(50);

   delay(400);

   servo.write(0);

 }

 //65 - 70 C, Hit

 /*

 if((int)temp == 65 ||(int)temp == 66 ||(int)temp == 67 || (int)temp == 68 ||(int)temp == 69||(int)temp == 70){

   servo.write(0);

   delay(400);

  servo.write(50);

   delay(400);

   servo.write(0);

 }

 //65 - 70 C, No hit

 else if((int)temp == 65 ||(int)temp == 66 ||(int)temp == 67 || (int)temp == 68 ||(int)temp == 69||(int)temp == 70){

  servo.write(0);

   delay(400);

 }

 //50 - 55 C, Hit

 else if((int)temp == 48||(int)temp == 49 ||(int)temp == 50 || (int)temp == 51 ||(int)temp == 52||(int)temp == 53){

   servo.write(0);

   delay(400);

  servo.write(50);

   delay(400);

   servo.write(0); 

 }

 //Repeat

  */

/*

 if(temp >= 65){

 for(pos = 0; pos <= 50; pos +=1){

   servo.write(pos);

delay(15);

}

   for(pos = 50; pos >= 50; pos-=1){

    servo.write(pos);

     delay(15);

  }

}

else if(temp <= 51){

 for(pos = 0; pos <= 50; pos +=1){

   servo.write(pos);

   delay(50);

 }

   for(pos = 50; pos >= 50; pos-=1){

    servo.write(pos);

     delay(15);

   }

 }

*/

}

Don’t connect servo +5 to controller +5. Connect it dirctly to the power supply.
No power supply showed in Fritz.