/*
This example reads three analog sensors (potentiometers are easiest) and sends
their values serially. The Processing and Max/MSP programs at the bottom take
those three values and use them to change the background color of the screen.
The circuit:
- potentiometers attached to analog inputs 0, 1, and 2
created 2 Dec 2006
by David A. Mellis
modified 30 Aug 2011
by Tom Igoe and Scott Fitzgerald
This example code is in the public domain.
https://www.arduino.cc/en/Tutorial/BuiltInExamples/VirtualColorMixer
*/constintredPin=A0;// sensor to control red color
constintgreenPin=A1;// sensor to control green color
constintbluePin=A2;// sensor to control blue color