/**************************************
*Linh Do
*
*
***************************************/

int analogPin2 = A2;//light sensor 2 white wire
int analogPin3 = A3;//light sensor 3 yellow wire


int temp2 = 0;//value of light sensor 2
int temp3 = 0;//value of light sensor 3


void setup() {
Serial.begin(9600);
}

void loop() {
temp2=analogRead(analogPin2);
temp2=int(map(temp2,0,1023,0,255));//light sensor 2
temp3=analogRead(analogPin3);
temp3=int(map(temp3,0,1023,0,255));//light sensor 3


Serial.write(1);
Serial.write(temp2); // println add Linefeed to my float - mic

Serial.write(2);
Serial.write(temp3); // println add Linefeed to my float - short light

Serial.println ("temp2 :");
Serial.println (temp2);
//Serial.println ("temp3 :");
//Serial.println (temp3);
delay (500);
}
