Do you have the sensor ground (blue wire?) connected to Arduino GND?. Try this:
sensorState = analogRead(A0) > 410;
Serial.println(sensorState);
delay(1000);
Do you have the sensor ground (blue wire?) connected to Arduino GND?. Try this:
sensorState = analogRead(A0) > 410;
Serial.println(sensorState);
delay(1000);