 CBC<AES256> cbcaes256;
 SHA256 sha256;
 char packet[192];
-byte iv[16];
 byte padded[48];
 long counter = 0;
-char tmp1[10] = {0,0,0,0,0,0,0,0,0,0};
+char tmp1[10];
 long tmp1c = 0;
-char tmp2[10] = {0,0,0,0,0,0,0,0,0,0};
+char tmp2[10];
 long tmp2c = 0;
 long c = 0;
 

void loop() {
    c++;
    radioReceive();     
    if (c%1000 == 0 && (tmp1[0] != 0 || tmp2[0] != 0)) { 
        if (tmp1[0] !=0 && tmp2[0] == 0)
        {
            sprintf((char*)padded, "{\"values\":{\"t1\":%s}}", tmp1);

  Udp.begin(2345);
  
  Serial.begin(9600);
  tmp1[0] = 0;
  tmp2[0] = 0;
  
  //uncomment to reset EEPROM counter
  //EEPROM.write(0, 0);  EEPROM.write(1, 0);  EEPROM.write(2, 0);  EEPROM.write(3, 0);
