int sensorPin = A0;
int sensorValue = 0;
int Led = 7;

void setup() {
  Serial.begin(9600);
  pinMode(Led, OUTPUT);
  // put your setup code here, to run once:

}

void loop() {
  sensorValue=analogRead(sensorPin);
  Serial.println(sensorValue);
  float voltage =sensorValue * (5.0/1023.0);
  Serial.println(voltage);

  if (voltage<=1){
    digitalWrite(Led, LOW);}
  else{
    digitalWrite(Led, HIGH);
  }
  delay(100);
  // put your main code here, to run repeatedly:

}