 //  
 #ifdef SEND_DATA
  #define SEND_SYNC(_x) theSender.send((_x & 0x1ff) | 0x0e00, 12)
+ #define SEND_LDR(_x) theSender.send((_x & 0x1ff), 12)
  #define SEND_T1(_x) theSender.send((_x & 0x1ff) | (0x0100 << 1), 12)
  #define SEND_T2(_x) theSender.send((_x & 0x1ff) | (0x0200 << 1), 12)
  #define SEND_T3(_x) theSender.send((_x & 0x1ff) | (0x0300 << 1), 12)

  } // if ( getDeviceCount() > 0 )
#endif // READ_SENSORS

  SEND_SYNC(2);
}


#include <DallasTemperature.h>

#ifdef SEND_DATA
 #define TX_PIN     10

RCSwitch theSender = RCSwitch();

#endif // SEND_DATA

#ifdef USE_LDR
 // define a pin for Photo resistor (ADC input!)
 #define LDR_PIN     0
#endif // USE_LDR

// Data wire is plugged into port 2 on the Arduino
#define ONE_WIRE_BUS 2
