const int analogInPin = A0; int sensorValue = 0; // set the sensor value to zero void setup() { Serial.begin(9600); // for serial monitor } void loop() { sensorValue = analogRead(analogInPin); // the value from the disc is stored in sensorValue and being displayed Serial.println ("\n"); Serial.print("sensor = " ); Serial.print(sensorValue); Serial.println ("\n"); delay(200); }