const float BETA = 3950; // should match the Beta Coefficient of the thermistor
void setup() {
  pinMode(A5, INPUT);
  pinMode(13, OUTPUT);
  pinMode(12, OUTPUT);
  pinMode(11, OUTPUT);
  pinMode(10, OUTPUT);
  pinMode(9, OUTPUT);
  pinMode(8, OUTPUT);
  pinMode(0, INPUT);
  Serial.begin(9600);
}

void loop() {
  digitalWrite(13, LOW);
  digitalWrite(12, LOW);
  digitalWrite(11, LOW);
  delay(1000);
  int temperute = analogRead(A5);
  float celsius = 1 / (log(1 / (1023. / temperute - 1)) / BETA + 1.0 / 298.15) - 273.15;
  //int temperute = 10;
  Serial.println(temperute);   
  if (temperute < 0) {
    digitalWrite(13, LOW);
    digitalWrite(12, LOW);
    digitalWrite(11, HIGH);
    delay(1000);
  }
  if (temperute == 10) {
    digitalWrite(13, LOW);
    digitalWrite(11, LOW);
    digitalWrite(12, HIGH);
    delay(1000);
  }
  if (temperute < 25) {
    digitalWrite(13, HIGH);
    digitalWrite(11, LOW);
    digitalWrite(12, LOW);
    delay(1000);
  }
  //int humidity = analogRead(0);  // Read analog value from humidity sensor
  delay(1000);
}