Project: Measure temperature using 1-wire bus with DS18B20 (Arduino+XBee)

Hi people! Hope that everything is fine with you! Im kinda new here, and in this area of arduino's and XBee's. What i'm trying to do is a circuit with 6 temperature sensors in 1 wire bus protocol using the DS18B20 Programmable Resolution 1-Wire Digital Thermometer. All this connected with Arduino Duemilanove+xbee shield+xbee 2 series (this will be my end device). The purpose of this work is to, send a message to another xbee in mode API (coordinator) connected to a PC with the X-CTU program to visualize in tab Terminal de incoming measurements of the circuit sensors. My problem is about how to program the arduino to do that. I allready have the code to get all of the six temperatures sensors connected to Arduino Duemilanove, that i pullout of the web and adjust to my circuit but, the part to send that temperatures through the XBee mounted on arduino i don't know! Please help me out on this. And i have another problem in the libraries. When i put the XBee.h in the libraries folder of the program of arduino, when i'm programming he don't recognize it! Can you say a solution to this and point me to a link to pullout a 100% right libray of xbee?
This is the part of the code that i allready have:
#include <OneWire.h>
#include <DallasTemperature.h>

// Data wire is plugged into pin 3 on the Arduino
#define ONE_WIRE_BUS 3

// Setup a oneWire instance to communicate with any OneWire devices
OneWire oneWire(ONE_WIRE_BUS);

// Pass our oneWire reference to Dallas Temperature.
DallasTemperature sensors(&oneWire);

DeviceAddress sensor1 = {
0x28, 0x94, 0xE2, 0xDF, 0x02, 0x00, 0x00, 0xFE };
DeviceAddress sensor2 = {
0x28, 0x6B, 0xDF, 0xDF, 0x02, 0x00, 0x00, 0xC0 };
DeviceAddress sensor3 = {
0x28, 0x59, 0xBE, 0xDF, 0x02, 0x00, 0x00, 0x9F };
DeviceAddress sensor4 = {
0x28, 0x95, 0xE2, 0xDE, 0x02, 0x00, 0x00, 0xF0 };
DeviceAddress sensor5 = {
0x28, 0x66, 0xDF, 0xDE, 0x02, 0x00, 0x00, 0xCE };
DeviceAddress sensor6 = {
0x28, 0x56, 0xBE, 0xEF, 0x02, 0x00, 0x00, 0x9C };

void setup(void)
// start serial port
// Start up the library
// set the resolution to 10 bit (good enough?)
sensors.setResolution(sensor1, 10);
sensors.setResolution(sensor2, 10);
sensors.setResolution(sensor3, 10);
sensors.setResolution(sensor4, 10);
sensors.setResolution(sensor5, 10);
sensors.setResolution(sensor6, 10);

void printTemperature(DeviceAddress deviceAddress)
float tempC = sensors.getTempC(deviceAddress);
if (tempC == -127.00) {
Serial.print("Error getting temperature");
else {
Serial.print("C: ");
Serial.print(" F: ");

void loop(void)
Serial.print("Getting temperatures...\n\r");

Serial.print("sensor1 temperature is: ");
Serial.print("sensor2 temperature is: ");
Serial.print("sensor3 temperature is: ");
Serial.print("sensor4 temperature is: ");
Serial.print("sensor5 temperature is: ");
Serial.print("sensor6 temperature is: ");

Many thanks for the attention!

There's another person over here having the same problem:,63309.0.html
Perhaps the two of you could get together to find a solution.

Yep, i know that because it's me on both xS Sorry about that but i didn't know what topic my doubt stayed better. Sorry about that. Thanks