Room automation light control - programming problem

doorSensorValue = analogRead(doorSensor);
  
if (doorSensor == true) {

You either have to use digitalRead(doorSensor) or you need to compare the analogRead() result to some threshold.

(And forget about gotos, as PaulS said. They're evil and should be banned from the language.)