 int outMin = 0; // The min output value, 0 is fully off
 int outMax = 255; // the max output value, 255 is the max for PWM
 
+String inString;
+
 void setup() {
   pinMode(13, OUTPUT);
   pinMode(fan0, OUTPUT);

int fan0 = 8;
int fan2 = 2;
int readySig = 70;
const int BETA = 4092; // 4092 is the Beta for TDK 100k Epcos Therm #8304
                        // 4267 is the Beta from the Semitec 104GT-2
const float R_ZERO = 100000.0; // Resistance at 25C
const float TO_VOLTS = 5.0/1024.0; // 5V board power / 1024 10bit range

}

void loop() {
  while(Serial.available() > 0){
    char inChar = Serial.read();
    if(isDigit(inChar)){
      inString += (char)inChar;
    }
    else{ // if(inChar == '\n'){
      int pwm = inString.toInt();
      Serial.print("PWM: ");
      Serial.println(pwm);
      analogWrite(heat0, pwm);
      inString = "";
    }
  }
  if (millis() - lastTime >= 2000){
    Serial.print("Current Temp: ");
    Serial.println(getCurrTemp());
    lastTime = millis();
  }
//  Compute();
}
