Created
June 5, 2020 07:57
-
-
Save RobolinkAkademi/ac89ad0b352a762bebd82bdee2d9c3e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int sensor = 6; | |
void setup() { | |
pinMode(sensor, INPUT); | |
Serial.begin(9600); | |
} | |
void loop() { | |
int Yagmur = digitalRead(sensor); | |
if(Yagmur == HIGH){ | |
Serial.println("Yağmur Yağmıyor"); | |
} | |
else | |
Serial.println("Yağmur Yağıyor"); | |
delay(50); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment