Error message "undefined reference to 'loop'"

I have attached my code, and here is the error message I’m getting! I am fairly new to arduino code and I am not sure what I am missing here.

/var/folders/f0/l7w0hj4x6d73d1r4pzh_yp040000gn/T//ccgqkwgw.ltrans0.ltrans.o: In function main': ccgqkwgw.ltrans0.o:(.text.startup+0x3d6): undefined reference to loop’
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Uno.

Any help would be appreciated.

Thank you!

pHcodes.ino (2.91 KB)

you must provide a loop () function. it need not actually do anything.

wg0z:
you must provide a loop () function. it need not actually do anything.

Thank you so much! But do you know where I must include this function?

You seem to have commented out void loop()

You posted this project in three different places.
And did not post your code correctly.
This sticky is on top of every main page.
"How to use this forum - please read."
Leo..

Hi,
Can you please post a copy of your sketch, using code tags?
They are made with the </> icon in the reply Menu.
See section 7 http://forum.arduino.cc/index.php/topic,148850.0.html

Thanks… Tom… :slight_smile: