int sensorPin = A0; /* select the input pin for LDR */ int sensorValue = 0; /* variable to store the value coming from the sensor */ void setup(){ Serial.begin(9600); /*-(start serial port to see results )-*/ } void loop() { sensorValue = analogRead(sensorPin); // read the value from the sensor Serial.println(sensorValue); delay(1000); }