       Serial.println();
     }
   }
+#else
+  // set desired precision of the temperature sensors
+  byte addr[8];
+  for ( byte nSensor=0; nSensor<sensors.getDeviceCount(); ++nSensor) {
+    if ( sensors.getAddress(addr, nSensor) ) {
+      sensors.setResolution(addr, TEMPERATURE_PRECISION);
+    }
+  }
 #endif // SCAN_SENSORS
+}
+
+int getRawTemperature(float temp) {
+  switch (TEMPERATURE_PRECISION) {
+    case 12:
+      return (int)(temp / 0.0625);
+    case 11:
+      return (int)(temp / 0.125);
+    case 10:
+      return (int)(temp / 0.25);
+    case 9:
+      return (int)(temp / 0.5);
+  }
+  
+  return 0;
 }
 
 /**


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

// Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas temperature ICs)
OneWire oneWire(ONE_WIRE_BUS);

#define SCAN_SENSORS
// read temperature sensors
#define READ_SENSORS
// send the data via 433MHZ Tx
#define SEND_DATA

#ifdef DEBUG
 // http://arduiniana.org/libraries/streaming/
