 /**
  * @see http://playground.arduino.cc/ComponentLib/Thermistor2
  */
-double Thermistor(int RawADC) {
+int Thermistor(int RawADC) {   
  double Temp;
  Temp = log(10000.0*((1024.0/RawADC-1))); 
   //         =log(10000.0/(1024.0/RawADC-1)) // for pull-up configuration
  Temp = 1 / (0.001129148 + (0.000234125 + (0.0000000876741 * Temp * Temp ))* Temp );
- Temp = Temp - 273.15;            // Convert Kelvin to Celcius
+ //Temp = Temp - 273.15;            // Convert Kelvin to Celcius
  //Temp = (Temp * 9.0)/ 5.0 + 32.0; // Convert Celcius to Fahrenheit
- return Temp;
+ 
+ int celcius = Temp - 273; 
+ return celcius;
 }
 
 /**

        // long int = 10 bytes in transmision string
        // byte = 3 bytes in transmision string
        char msg[35]; // string to send
        sprintf(msg, "S,%d,%u,%u,%u,%u,%lu", msgId, solar_read, temperature_internal, temperature_external, soil_read, readVcc());
        Serial.println(msg); 
        vw_send((uint8_t *)msg, strlen(msg));
        vw_wait_tx(); // Wait until the whole message is gone
        digitalWrite(PIN_TX_POWER, LOW);

{
  sleep_flag = flag;
  
  //digitalWrite(LED_DEBUG, LOW);
  
  
  cli();
