Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
tum_yil_icin_arduino_mufredati_13.3
int led=10;
int sensor=A0;
void setup()
{
pinMode(led,OUTPUT);
}
void loop() {
int deger=analogRead(sensor);
if(deger<500)
{
digitalWrite(led,LOW);
}
else
{
digitalWrite(led,HIGH);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment