Interfacing Light Blocking Module With Arduino || Light Blocking || 37 Sensor Kit || Arduino Uno

Published: 26 August 2021
on channel: Samandar Khan Afridi
149
7

For Contact Send an Email at: [email protected]
Subscribe My Channel For More Arduino Based Projects
We will upload more Arduino based videos on this channel, So keep connected with us
Thank You.
Following is the program, Copy it and paste it in Arduino IDE
//Light Blocking Module with Arduino
int ledPin=13;
int detectorPin=3;
void setup() {
// put your setup code here, to run once:
pinMode(ledPin,OUTPUT);
pinMode(detectorPin,INPUT);
}

void loop() {
// put your main code here, to run repeatedly:
int val=digitalRead(detectorPin);
if (val==HIGH)
{
digitalWrite(ledPin,HIGH);
}
else
{
digitalWrite(ledPin,LOW);
}
}


Watch video Interfacing Light Blocking Module With Arduino || Light Blocking || 37 Sensor Kit || Arduino Uno online without registration, duration hours minute second in high quality. This video was added by user Samandar Khan Afridi 26 August 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 149 once and liked it 7 people.