//This program not only prints and reads from the pin with the photocell, it also figures out which pin has the photocell in it. Probably not as reliable as just int a; int b; int c; int d; int e; int f; int g; int h; int i; int j; int k; int l; int m; int y; int photocellPin = y; //this is where one end of the photocellis inserted. The other end should be inserted in ground (GND). int x; int photocellReading; void setup() { Serial.begin(9600); //sets the Baud rate to 9600. a = analogRead(1); //each of these variables represents a pin. The one in which a resistor and photocell are placed should have the lowest reading. b = analogRead(2); c = analogRead(3); d = analogRead(4); e = analogRead(5); f = analogRead(6); g = analogRead(7); h = analogRead(8); i = analogRead(9); j = analogRead(10); k = analogRead(11); l = analogRead(12); m = analogRead(13); if (a