sketch wont compile

hi all new to this,im trying to upload this sketch,it fails to compile,any ideas?.

http://www.bristolwatch.com/radio/arduino_coil_winder.htm
Arduino Stepper Motor Coil Winder
Lewis Loflin
lewis@bvu.net

*/

#define yellow 9 //Q1
#define orange 10 //Q2
#define brown 11 // Q3
#define black 12 // Q4

#define SW0 2
#define SW1 3
#define SW2 4
#define SW3 5

#include <OneWire.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
// set the LCD address to 0x27

int i, j;

void setup() {

pinMode(SW0, INPUT);
pinMode(SW1, INPUT);
pinMode(SW2, INPUT);
pinMode(SW3, INPUT);

digitalWrite(SW0, 1); // pull up on
digitalWrite(SW1, 1); // pull up on
digitalWrite(SW2, 1);
digitalWrite(SW3, 1);

lcd.init(); // initialize the lcd
lcd.backlight();

pinMode(black, OUTPUT);
pinMode(brown, OUTPUT);
pinMode(orange, OUTPUT);
pinMode(yellow, OUTPUT);
all_coils_off();

lcd.clear();
lcd.home();
lcd.print(“Wait 2 sec.”);

delay(2000); // wait for 2 seconds
lcd.setCursor(0, 1); // is Home
lcd.print(“Ready to go!”);

j = 0;

}

void loop() {

// set turns
if (!digitalRead(SW0) == 1) {
delay(1000);
j = 0;
lcd.clear();
lcd.home();
lcd.print("Turns = 0 ");
while (!digitalRead(SW0) == 1) {
delay(1000);
if (!digitalRead(SW1) == 1) j = j + 1;
if (!digitalRead(SW2) == 1) j = j + 10;
lcd.setCursor(8, 0);
lcd.print(j);
} // end while
lcd.setCursor(0, 1);
lcd.print(“Ready to wind.”);
}

if (!digitalRead(SW3)) {
lcd.clear();
lcd.home();
lcd.print("Turns 0 ");
for (i = 1; i <= j; i++) {
reverse(200);
lcd.setCursor(6, 0);
lcd.print(i);
}
all_coils_off();
lcd.setCursor(0, 1);
lcd.print("Finished ");
}

} // end loop

void all_coils_off(void) {
digitalWrite(black, 0);
digitalWrite(brown, 0);
digitalWrite(orange, 0);
digitalWrite(yellow, 0);

}

void reverse(int i) {
while (1) {
digitalWrite(black, 1);
digitalWrite(brown, 0);
digitalWrite(orange, 0);
digitalWrite(yellow, 1);
delay(analogRead(0) / 4 + 5);
i–;
if (i < 1) break;

digitalWrite(black, 0);
digitalWrite(brown, 1);
digitalWrite(orange, 0);
digitalWrite(yellow, 1);
delay(analogRead(0) / 4 + 5);
i–;
if (i < 1) break;

digitalWrite(black, 0);
digitalWrite(brown, 1);
digitalWrite(orange, 1);
digitalWrite(yellow, 0);
delay(analogRead(0) / 4 + 5);
i–;
if (i < 1) break;

digitalWrite(black, 1);
digitalWrite(brown, 0);
digitalWrite(orange, 1);
digitalWrite(yellow, 0);
delay(analogRead(0) / 4 + 5);
i–;
if (i < 1) break;

}Arduino: 1.8.5 (Windows 7), Board: “Arduino/Genuino Uno”

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\me\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10805 -build-path C:\Users\me\AppData\Local\Temp\arduino_build_72688 -warnings=none -build-cache C:\Users\me\AppData\Local\Temp\arduino_cache_812341 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\me\Documents\Arduino\sketch_jul13a\sketch_jul13a.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\me\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10805 -build-path C:\Users\me\AppData\Local\Temp\arduino_build_72688 -warnings=none -build-cache C:\Users\me\AppData\Local\Temp\arduino_cache_812341 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\me\Documents\Arduino\sketch_jul13a\sketch_jul13a.ino
Using board ‘uno’ from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Using core ‘arduino’ from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Detecting libraries used…
“C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino” “-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard” “C:\Users\me\AppData\Local\Temp\arduino_build_72688\sketch\sketch_jul13a.ino.cpp” -o “nul”
“C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino” “-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard” “C:\Users\me\AppData\Local\Temp\arduino_build_72688\sketch\sketch_jul13a.ino.cpp” -o “C:\Users\me\AppData\Local\Temp\arduino_build_72688\preproc\ctags_target_for_gcc_minus_e.cpp”
C:\Users\me\Documents\Arduino\sketch_jul13a\sketch_jul13a.ino:24:21: fatal error: OneWire.h: No such file or directory

#include <OneWire.h>

^

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.
thats all i get,any help apreciated,cheers Paul.

Welcome to the forum! First thing you should probably do is read the sticky posts at the top of the first page regarding how to post your code. Pay particular attention to the bits about using code tags. Understand that you are asking others to devote some of their free time to assist you. As such you should go all you can to facilitate that. Which means getting your code inside tags so it easy to select and copy into an editor. It also looks nicer.

OneWire.h: No such file or directory

Errors don't get much clearer than that. Do you have that library downloaded? Where is it on your computer?

yes i downloaded the liquid xtal display and wire library,i put them both my documents/arduino/librarys folder,as far i i see the sketch calls for them but cant see them.ps,may be a silly question but whats a tag?.cheers Paul.

@OP

1. Your void reverse(int i) is missing one }. I placed it, and I got your codes compiled in my IDE 1.8.5.

2. Do you really need to include the following Libraries with your sketch? If yes, what devices are they controlling in your sketch? OneWire.h Wire.h

hi,just uninstalled the latest version and installed ver 10.5 and it compiled and uploaded fine,thanks everyone.

hi all i just noticed this uses opto couplers etc to drive the motors,could the sketch be altered to use drv 8825 drivers ie a step and direction output?,reason i ask is i have these in my junkbox,thanks for the help,cheers Paul.

Maybe if you posted the latest version of your sketch CORRECTLY in code tags someone would look at it for you. But if you're just going to ignore everything anyone says what can you expect?

Steve