Completely new to programming, I thought to write an LDR sensor code myself and used the if else command. It showed quite a lot of problems and it would help if you would correct me please. thankyou.
int ledPin = 13;
int sensorPin = 0;
int val = 0;
void setup () {
 pinMode (ledPin, OUTPUT);
 pinMode (sensorPin, INPUT);
void loop () {
 If (sensorPin == HIGH);
 (ledPin, HIGH);
 Else (ledPin, LOW);
}