 #include "tx433_Nexa.h" // Nexa headers
 #include <buttons.h>  // Button sensing
 
+// Temperature Pin
+const int TEMP_PIN = A1;
+float tempC = 0;
+  
 // Setup software serial
 SoftwareSerial com(10, 11); // RX, TX
 

void  loop(){  
  CheckWaterOn();
  CheckButtons();
  digitalClockDisplay();
  Alarm.delay(0); // o == check all the time
}

    }
}

void sendTemp()
{
  static long last_temp_transmit = millis();
  if ((millis() - last_temp_transmit) >= 100)
   { 
    readTemp();
    String data = "id=temp value=";
    data += tempC;
    sendData(data);
    //Serial.print("Temp in room: ");
    //Serial.println(data);
    last_temp_transmit = millis();
   }
  }
  
void readTemp()
{
  float tmp = 0;
  for (int i=0; i < 10; i++)
    tmp += analogRead(TEMP_PIN) / 9.31;

  tempC = tmp / 10;
  }

void digitalClockDisplay()
{
  // digital clock display of the time
