 
 void loop(void)
 {
-  char command[32] ;
-  char *ptr;
-  ptr = &command[0];
+  byte command[32] ;
+  byte *ptr = &command[0];
   if ( radio.available() )
     {
      
       bool done = false;
       while (!done)
       {
-        done = radio.read( ptr, sizeof(char[32]) );
+        done = radio.read( ptr, sizeof(byte[32]) );
         delay(20);
       }
       runCommand(ptr);
-      Serial.println(ptr[12]);
+      //Serial.println(ptr[12]);
       
       radio.stopListening();
       radio.write(ptr, sizeof(byte[32]));

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

}

void readSwitch(char* ptr){
  ptr[12] = 0xFF;
  ptr[15] = switchStatus;

}

void readLamp(char* ptr){
  ptr[12] = 0xFF;
  ptr[15] = lampStatus;

}

void switchLight(char* ptr)
{
  lampStatus = ptr[16];
  if(lampStatus == 0xFF){

    }

}
void runCommand(byte *ptr)
{
  //Serial.println(ptr[10]);
  switch (ptr[10])
  {
    case 0:
    {
      readAllSensors(ptr);  
      break;
    }
    case 1:
    {
      if (ptr[12]== 0x00){
