int sen=8;
int led=7;
void setup() {
pinMode(8, INPUT);
pinMode(7,OUTPUT);
}
void loop() {
if(digitalRead(8)==HIGH){
//Serial.print("Hello");
digitalWrite(7, HIGH);
delay(1000);
}
}
int sen=8;
int led=7;
void setup() {
pinMode(8, INPUT);
pinMode(7,OUTPUT);
}
void loop() {
if(digitalRead(8)==HIGH){
//Serial.print("Hello");
digitalWrite(7, HIGH);
delay(1000);
}
}