void loop() {
int sensorValue = analogRead(A0);
Serial.println(sensorValue);
digitalWrite(4, HIGH);
if (sensorValue > 360) {
// do action in braces
}
else {
// optional - do other action in these braces
}
} // end loop
Use CTRL-T, will autoformat the code to make it more readable, and also help you find mis-matched ( ), { }, and missing ;