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); } }
In this blog you will find coding for all projects for science exhibition