   but analogWrite() uses 8 bits. You'll want to divide your 
   sensor readings by 4 to keep them in range of the output. 
   */
-  redValue = redsensorValue/4;
-  greenValue = greensensorValue/4;
-  blueValue = bluesensorValue/4;  
+  redValue = redSensorValue/4;
+  greenValue = greenSensorValue/4;
+  blueValue = blueSensorValue/4;  
 
   //  print out the mapped values  
   Serial.print("Mapped sensor Values \t red: ");

  /*
  Now that you have a usable value, it's time to PWM the LED.
  */
  analogWrite(redLedPin, redValue);
  analogWrite(greenLedPin, greenValue);
  analogWrite(blueLedPin, blueValue);
}


 three 10 kilohm resistors
 3 220 ohm resistors
 3 photoresistors
 red green and blue colored gels
 
 Created 13 September 2012
 Modified 14 November 2012
 by Scott Fitzgerald
 Thanks to Federico Vanzati for improvements

