Line Follower Code

I have been searching and trying all the redbot line follower code programs for our redbot shadow chassis (black robot). I can get all the other programs to work, but when I upload the various code programs I can find online, none will compile correctly. I keep working through and finding and pasting new ones but none seems to work, would be grateful if anyone has a suggestion on where to find a simple working code.

This is the one I have tried the most:

This is the error message I get:
Arduino: 1.6.8 (Windows 10), 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\Deepak\Documents\Arduino\libraries" -fqbn=arduino:avr:uno -ide-version=10608 -build-path "C:\Users\Deepak\AppData\Local\Temp\builda0d11ef1f5a11e655a6a87165b6cfd08.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\Deepak\AppData\Local\Temp\arduino_modified_sketch_8072\sketch_may10b.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\Deepak\Documents\Arduino\libraries" -fqbn=arduino:avr:uno -ide-version=10608 -build-path "C:\Users\Deepak\AppData\Local\Temp\builda0d11ef1f5a11e655a6a87165b6cfd08.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\Deepak\AppData\Local\Temp\arduino_modified_sketch_8072\sketch_may10b.ino"
Build options changed, rebuilding all
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10608 -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\Deepak\AppData\Local\Temp\builda0d11ef1f5a11e655a6a87165b6cfd08.tmp\sketch\sketch_may10b.ino.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10608 -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\Deepak\AppData\Local\Temp\builda0d11ef1f5a11e655a6a87165b6cfd08.tmp\sketch\sketch_may10b.ino.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10608 -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\Deepak\AppData\Local\Temp\builda0d11ef1f5a11e655a6a87165b6cfd08.tmp\sketch\sketch_may10b.ino.cpp" -o "C:\Users\Deepak\AppData\Local\Temp\builda0d11ef1f5a11e655a6a87165b6cfd08.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
sketch_may10b:3: error: unterminated #ifndef

#ifndef RedBot_h

^

exit status 1
unterminated #ifndef

So, just add a "#endif" at the end of the file you didn't post.