int lowLight = 400; // the light sensor reading when it's covered int highLight = 1023; // the maximum light sensor reading int minGreen = 0; // minimum brightness of the green LED int maxGreen = 100; ...