Function was not declared in this scope - compile error

There is a { missing here for a start:

void heat()
   
     temp = analogRead(TEMP);		 //READ TEMP

I had to add about 5 x } here just to get the auto-format to work.

          digitalWrite(4, LOW); // turn OFF "connected" LED
          delay(2000);
          readString="";
        }
      }
    }
  }
}

These braces are supposed to match you know. They aren't just there for decoration.