Professional Documents
Culture Documents
void setup() {
void loop() {
PrValue = analogRead(Pr);
if (PrValue < Pr_Input) // if sensor value is less than 19, light will turn on.
{ digitalWrite(8, HIGH);//LED on }
}else { digitalWrite(8, LOW);// LED off }
}}