#include <OneWire.h>#include <DallasTemperature.h>OneWire oneWire(2); //Connect to Pin 2 (D2)DallasTemperature sensors(&oneWire);void setup(void){ Serial.begin(9600); Serial.println("Dallas Temperature IC DS18B20"); sensors.begin();}void loop(void){ Serial.print(" Requesting temperatures..."); sensors.requestTemperatures(); // Send the command to get temperatures Serial.println("DONE"); Serial.print("Temperature is: "); Serial.print(sensors.getTempCByIndex(0)); Serial.println(" Degrees C"); Serial.print("Temperature is: "); Serial.print(sensors.getTempFByIndex(0)); Serial.println(" Degrees F");}