   
 }
 void readTemp(byte* ptr){
-  ptr[12] = 0xFF;
-  ptr[13] = 0x02;
+  ptr[12] = 255;
+  ptr[13] = 2;
 }
 void readHum(byte* ptr){
-  ptr[12] = 0xFF;
-  ptr[14] = 0x03;
+  ptr[12] = 255;
+  ptr[14] = 23;
 }
 void readLum(byte* ptr){
-  ptr[12] = 0xFF;
-  ptr[15] = 0x05;
+  ptr[12] = 255;
+  ptr[15] = 14;
 
 }
 
 void readLamp(byte* ptr){
-  ptr[12] = 0xFF;
+  ptr[12] = 255;
   ptr[16] = lampStatus;
 
 }
 void readSwitch(byte* ptr){
-  ptr[12] = 0xFF;
+  ptr[12] = 255;
   ptr[17] = switchStatus;
 
 }

#include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"

RF24 radio(9,10);


    }
    case 1:
    {
      if (ptr[12]== 0){
        switchLight(ptr);
      }
      break;
