Reed sensor working and program with Aurdino

void setup(){ pinMode(13,OUTPUT); pinMode(3,INPUT); Serial.begin(9600);}void loop(){ if (digitalRead(3)== HIGH) { digitalWrite(13,LOW); } else { digitalWrite(13,HIGH); } }

Comments

Popular posts from this blog

Ir sensor and servo motor programming, hr robotics

Ultrasonic sensor and led programming