My Code Is not Functioning Properly

So I need help with my code, I'm trying to display the tempurature on my LCD1602 (Arduino Uno R3) and my code isn't working, here it is:

//Project: Photocell or Photoresistor and LCD 1602 display
//Function: You will see the temperature from photoresistor on LCD 1602 display
//*****************************************************************
#include <LiquidCrystal.h> //include the library code
//*****************************************************************
const int photoPin = A1; //photoresistor attached to analog pin A1
int Val = 0; //local variable to store the reading from your sensor
LiquidCrystal lcd(4,5,9,10,11,12);//initialize the library with the numbers of the interface pins
//*****************************************************************
void setup()
{
lcd.begin(16, 2); //setup the LCD's number of columns and rows
Serial.begin(9600); //initialize serial communications at 9600 bps
void loop()
{
Val = analogRead(photoPin); //read the temperature from sensor
lcd.setCursor(0, 0); //set the cursor to column 0, line 0
lcd.print("Photoresistor : ");//print word Photoresistor: on LCD display
lcd.setCursor(11, 0); //set the cursor to column 11, line 0
lcd.print(Val); //print the temperature on LCD display
Serial.println(Val); //print the temperature in serial monitor
delay(1000); //set the delay 1 second
lcd.setCursor(11, 0); //set the cursor to column 11, line 0
lcd.print(" "); //clear the temperature value on LCD display
}

Can anybody help?

Your code doesn't compile, so you can't say "it isn't working".

Look to see where the setup function should end.
(Hint: it should end before the loop function starts)

Please remember to use code tags when posting code.

Sorry, I'm kind of new to this and yes, I will put code tags before posting code. Putting my "{" after the loop function isn't working.

Not surprising - it should be a "}" before the loop function

Now it says "expected initializer before the "}" token.

I can't see your code

<#include <LiquidCrystal.h>

const int photoPin = A1;
int Val = 0;
LiquidCrystal lcd(4,6,10,11,12,13);

void setup()
{
lcd.begin(16, 2);
Serial.begin(9600);
void loop() }

Val = analogRead(photoPin);
lcd.setCursor(0, 0);
lcd.print("Photoresistor : ");
lcd.setCursor(11, 0);
lcd.print(Val);
Serial.println(Val);
delay(1000);
lcd.setCursor(11, 0);
lcd.print(" ");
}>

My code tags!!!

BEFORE the loop function.

If unsure, look at some of the examples in the IDE

Yes, what went wrong?

I just don't know how to do code tags...

There's a button for it on the little edit window that looks like this "</>"

Thank you

//Project: Photocell or Photoresistor and LCD 1602 display
//Function: You will see the temperature from photoresistor on LCD 1602 display
//*****************************************************************
#include <LiquidCrystal.h>        //include the library code
//*****************************************************************
const int photoPin = A1;          //photoresistor attached to analog pin A1
int Val = 0;                      //local variable to store the reading from your sensor
LiquidCrystal lcd(4,5,9,10,11,12);//initialize the library with the numbers of the interface pins
//*****************************************************************
void setup()
{
  lcd.begin(16, 2);      //setup the LCD's number of columns and rows 
  Serial.begin(9600);    //initialize serial communications at 9600 bps
void loop()
{
  Val = analogRead(photoPin);   //read the temperature from sensor
  lcd.setCursor(0, 0);          //set the cursor to column 0, line 0
  lcd.print("Photoresistor : ");//print word Photoresistor: on LCD display
  lcd.setCursor(11, 0);         //set the cursor to column 11, line 0
  lcd.print(Val);               //print the temperature on LCD display
  Serial.println(Val);          //print the temperature in serial monitor
  delay(1000);                  //set the delay 1 second
  lcd.setCursor(11, 0);         //set the cursor to column 11, line 0
  lcd.print("     ");           //clear the temperature value on LCD display
}

That's my code so far...

...and it is missing a "}" before the loop function

Ok, thank you!

Do I add another line with the "}"?

What happened when you tried it? (Hint)

It said I need a constructor, destructor or a conversion with the ";"

This is my first day logged in so I can't send anymore messages/replies.

Again,I can't see your code.
Please - the IDE is jam packed with examples