   Serial.begin(57600);
 
   radio.begin();
-  //radio.setChannel(0x4b);
   radio.setAutoAck(false);
   radio.setRetries(15,15);
   radio.setPALevel(RF24_PA_MAX);


void loop(void)
{
  byte command[32] ;
  byte *ptr;
  ptr = &command[0];
  if ( radio.available() )
    {

  }

}
void readAllSensors(char* ptr){
  readTemp(ptr);
  readHum(ptr);
  readLum(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 switchOnLight(char* ptr)
{
  digitalWrite(led, HIGH);
  ptr[12] = 0xFF;
  ptr[16] = 0xFF;
}
bool switchOffLight(char* ptr){
  digitalWrite(led, LOW);
  ptr[12] = 0xFF;
  ptr[16] = 0xFF;
}
