//if (tempF + 5 < target && target <= tempF + 10);
// if (tempF < target && target <= tempF + 5 );
if (tempF + 5 < target && target <= tempF + 10)
if (tempF < target && target <= tempF + 5 )
You are wrongly terminating these conditionals with a ;