       while (!done)
       {
         done = radio.read( ptr, sizeof(byte[32]) );
-        delay(20);
+        delay(10);
       }
       if (pipenum==1){
           runCommand(ptr);

  
}
void readTemp(byte* ptr){
  ptr[12] = 0xFF;
  ptr[13] = 0x02;
}
void readHum(byte* ptr){
  ptr[12] = 0xFF;
  ptr[14] = 0x03;
}
void readLum(byte* ptr){
  ptr[12] = 0xFF;
  ptr[15] = 0x05;

}

void readLamp(byte* ptr){
  ptr[12] = 0xFF;
  ptr[16] = lampStatus;

}
void readSwitch(byte* ptr){
  ptr[12] = 0xFF;
  ptr[17] = switchStatus;

}

void switchLight(byte* ptr)
{
  lampStatus = ptr[16];
  if(lampStatus == 255){
    digitalWrite(led, HIGH);
  }
  else{
    digitalWrite(led, LOW);
  }
  ptr[12] = 255;
}

