/* AnalogReadSerial Reads an analog input on pin 0, prints the result to the serial monitor This example code is in the public domain. */ void setup() { Serial.begin(9600); } void loop() { int sensorValue = analogRead(A0); Serial.println(sensorValue, DEC); delay(10); if(sensorValue > 700){ digitalWrite(13, HIGH); } else { digitalWrite(13, LOW); } }