Posts

Showing posts from May, 2021

Reed sensor working and program with Aurdino

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