NAMA KELOMPOK :
1. M TAUFIQ IRVAN E (163600027)2. YULFI AINUN AL F (163600053)
void loop() {
x=analogRead(A0);
Serial.println(x);
delay(50);
if(x<=140){
if(a==0){
digitalWrite(8,HIGH);
a=1;
}
else{
digitalWrite(8,LOW);
a=0;
}
}
}
int x;
void setup() {
Serial.begin(9600);
pinMode(8,OUTPUT);
}
void loop() {
x=analogRead(A0);
Serial.println(x);
delay(50);
if(x<=140){
digitalWrite(8,HIGH);
}
else{
digitalWrite(8,LOW);
}
}
void setup() {
Serial.begin(9600);
pinMode(8,OUTPUT);
}
void loop() {
x=analogRead(A0);
Serial.println(x);
delay(50);
if(x<=140){
digitalWrite(8,HIGH);
}
else{
digitalWrite(8,LOW);
}
}