             byte door;    // door sensor: 0..1
             int tempIn;   // temperature: -500..+500 (tenths)
             int tempOut;  // temperature: -500..+500 (tenths)
+            int battery;  // battery voltage
         };
     };
 };

        Serial.print((int) sensorData.tempIn);
        Serial.print(' ');
        Serial.print((int) sensorData.tempOut);
        Serial.println();
        serialFlush();
    #endif

#define DEBUG      1     // set to 1 to display each loop() run
#define BAUD_RATE  57600

#define APIN_BATTERY    0  // data connection for battery
#define APIN_LDR        1  // data connection for photocell
#define DPIN_ONEWIRE    3  // data connection for the Dallas OneWire bus
#define DPIN_HALL       7  // data connection for hall effect
#define DPIN_RF_LED     9  // led indicating rf traffic
#define LED_DELAY       500
#define VDD_RATIO       1.622

#define MEASURE_PERIOD  100 // how often to measure, in tenths of seconds
#define RETRY_PERIOD    10  // how soon to retry if ACK didn't come in
