int sensorPin=A1;
int sensorpin2=A2;
int sensorvalue =0,Led =2;
int sensorvalue2 =0,Led2 =4;
void setup() {
Serial.begin(9600);
pinMode(sensorPin, INPUT);
pinMode(sensorpin2, INPUT);
pinMode(Led, OUTPUT);
pinMode(Led2, OUTPUT);
}
void loop(){
sensorvalue=analogRead(sensorPin);
sensorvalue=map(sensorvalue,0,1023,0,1000);
Serial.println(sensorvalue);
digitalWrite(Led,1);
delay(sensorvalue);
digitalWrite(Led,0);
delay(sensorvalue);
sensorvalue2=analogRead(sensorpin2);
sensorvalue2=map(sensorvalue2,0,1023,0,1000);
Serial.println(sensorvalue2);
digitalWrite(Led2,1);
delay(sensorvalue2);
digitalWrite(Led2,0);
delay(sensorvalue2);
}