cant get program to compile

hi,
im building this project, a thermostat that controls a fan, its someone else's code, but i cant get the program to compile could someone please tell me what the error is in the program.
thank you

#include <OneWire.h>
#include <DallasTemperature.h>
#include <LiquidCrystal.h>

int sensorPin = A0;    // select the input pin for the potentiometer
int sensorValue = 0;  // variable to store the value coming from the sensor
int setTemp = 0; // variable to store temp desired
int SSRPin = 9;
char* heat;

float currentTemp = 0;

// Connections:
// rs (LCD pin 4) to Arduino pin 12
// rw (LCD pin 5) to Arduino pin 11
// enable (LCD pin 6) to Arduino pin 10
// LCD pin 15 to Arduino pin 13
// LCD pins d4, d5, d6, d7 to Arduino pins 5, 4, 3, 2
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

int backLight = 13; // pin 13 will control the backlight

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

// 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 insideThermometer = { 0x28, 0xBC, 0xDA, 0xE3, 0x02, 0x00, 0x00, 0x09 };
// DeviceAddress outsideThermometer = { 0x28, 0x20, 0x04, 0xA8, 0x02, 0x00, 0x00, 0x4D };

void setup(void)
{
// Start up the library
sensors.begin();
// set the resolution to 10 bit (good enough?)
sensors.setResolution(insideThermometer, 10);
// sensors.setResolution(outsideThermometer, 10);

pinMode(backLight, OUTPUT);
digitalWrite(backLight, HIGH); // turn backlight on. Replace 'HIGH' with 'LOW' to turn it off.
lcd.begin(20,4); // columns, rows. use 16,2 for a 16x2 LCD, etc.

pinMode(SSRPin, OUTPUT); 
digitalWrite(SSRPin, LOW);

}

void printTemperature(DeviceAddress deviceAddress)
{
  
sensors.requestTemperatures();  // was in loop

float tempC = sensors.getTempC(deviceAddress);
if (tempC == -127.00) {
lcd.print("Error");
} else {
// lcd.print(tempC);
// lcd.print("/");
currentTemp = (DallasTemperature::toFahrenheit(tempC));
lcd.print(currentTemp);

if (currentTemp < setTemp)
{
  digitalWrite(SSRPin, HIGH);
  heat = "On";
}
else
{
  digitalWrite(SSRPin, LOW);
  heat = "Off";
}

}
}

void loop(void)
{
delay(1000);

  sensorValue = analogRead(sensorPin);  
  
  setTemp = sensorValue / 4;
  
  
  



lcd.clear(); // start with a blank screen


lcd.setCursor(0,0);
lcd.print("Current: ");
lcd.setCursor(0,1);
lcd.print("Set: ");
lcd.setCursor(0,3);
lcd.print("Heat: ");



lcd.setCursor(10,0);
printTemperature(insideThermometer);
lcd.setCursor(6,1);
lcd.print(setTemp);
lcd.setCursor(7,3);
lcd.print(heat);



}

jonisonvespa:
hi,
im building this project, a thermostat that controls a fan, its someone else's code, but i cant get the program to compile could someone please tell me what the error is in the program.
thank you

#include <OneWire.h>

#include <DallasTemperature.h>

Compiling this gets:

sketch_jun08a.cpp:1:21: error: OneWire.h: No such file or directory
sketch_jun08a.cpp:2:31: error: DallasTemperature.h: No such file or directory
sketch_jun08a:2: error: variable or field 'printTemperature' declared void
sketch_jun08a:2: error: 'DeviceAddress' was not declared in this scope
sketch_jun08a:26: error: 'OneWire' does not name a type
sketch_jun08a:29: error: 'DallasTemperature' does not name a type
sketch_jun08a:31: error: 'DeviceAddress' does not name a type
sketch_jun08a.cpp: In function 'void setup()':
sketch_jun08a:37: error: 'sensors' was not declared in this scope
sketch_jun08a:39: error: 'insideThermometer' was not declared in this scope
sketch_jun08a.cpp: At global scope:
sketch_jun08a:51: error: variable or field 'printTemperature' declared void
sketch_jun08a:51: error: 'DeviceAddress' was not declared in this scope

It cannot find OneWire.h or DallasTemperature.h. These headers are part of third-party libraries, which will also probably be needed come link-time.

See here: http://www.arduino.cc/playground/Learning/OneWire
And here: MilesBurton.com