Sorry for the lack of info.
The analog value is what changes.
I did not expect any certain value but I wanted it to stay consistent based on what the sensor sees.
For the first 10 seconds or so the readings are all over the place then it starts to become somewhat consistent (+/- 10).
If i power it off and turn it on a few seconds later the values it was reading before I shut it off is what the lcd displays… It does not have that time period where the values are completely unreliable.
Below is a link of it in action. Their is one sensor on each side... where the arm stops.
Here is the code for just the light sensors…
#include <SerialLCD.h>
#if ARDUINO < 100
#include <NewSoftSerial.h> //this is a must
#else
#include <SoftwareSerial.h>
#endif
SerialLCD slcd(11,12);
// Serial LCD setup
int sensorPin = A1 ;
int long sensorValue = 0;
void setup() {
slcd.begin();
}
void loop() {
slcd.setCursor(0, 1);
sensorValue = analogRead(sensorPin);
slcd.print(sensorValue, DEC);
delay(100);
slcd.clear();
}