Problems with temperature sensor DS18B20 using on Arduino pro mini(clone)

Hello members of Arduino forum

I am new to Arduino programming and I have run on this problem what I can't get fixed my self so I am asking help to more experienced people than me. So my Arduino project is outputting 0.00 temperature and I can't figure it out why... previously it was outputting -127 ,but after giving try on windows laptop it started to output 0.00. To try fix the problem I have tried to use many different codes, changing the wiring and I have bought a new resistor 4.7k with the DS10B20 temperature sensor, I have used different Arduino pro mini 5v, 16mhz as well, but it haven't solved the problem.

Can it still be like problem with a driver because I'm using os x?

If there is someone who have experienced something similar or know what maybe is wrong please give me your opinion

Code what I am using

#include <OneWire.h>
#include <DallasTemperature.h>
 
// Data wire is plugged into pin 2 on the Arduino
#define ONE_WIRE_BUS 2
 
// Setup a oneWire instance to communicate with any OneWire devices 
// (not just Maxim/Dallas temperature ICs)
OneWire oneWire(ONE_WIRE_BUS);
 
// Pass our oneWire reference to Dallas Temperature.
DallasTemperature sensors(&oneWire);
 
void setup(void)
{
  // start serial port
  Serial.begin(9600);
  Serial.println("Dallas Temperature IC Control Library Demo");

  // Start up the library
  sensors.begin();
}
 
 
void loop(void)
{
  // call sensors.requestTemperatures() to issue a global temperature
  // request to all devices on the bus
  Serial.print(" Requesting temperatures...");
  sensors.requestTemperatures(); // Send the command to get temperatures
  Serial.println("DONE");

  Serial.print("Temperature for Device 1 is: ");
  Serial.print(sensors.getTempCByIndex(0)); // Why "byIndex"? 
    // You can have more than one IC on the same bus. 
    // 0 refers to the first IC on the wire
 delay(3000);
}

I don't know if it allowed to publish different webpage, so sorry about it if its not. The code and how I have connected the Arduino is the same as in this website http://www.hobbytronics.co.uk/ds18b20-arduino

The images how I have connected my arduino pro mini 5v 16mhz(clone)
http://rapidshare.lv/wos/94404/image-3.jpg.htm
http://rapidshare.lv/wos/94406/image-4.jpg.html
http://rapidshare.lv/wos/94408/image-6.jpg.html
http://rapidshare.lv/wos/94410/image.jpg.html

You didn't solder the pinstrips to the Pro-Mini.
Russian roulette.
Leo..

Hi

Yeah, I know but can it be the reason why it dose not work as it should?

Of course that is why it isn't working. The pins on the Pro Mini board are not connected to the header pins so there' no connection from the Pro Mini board to the breadboard.
Solder isn't just a decoration - it's essential.

Pete