const int ledPin = 13; //the number of the LED pin const int ldrPin = A0; //the number of the LDR pin void setup() { Serial.begin(9600); pinMode(ledPin, OUTPUT); //initialize the LED pin as an output pinMode(ldrPin, INPUT); //initialize the LDR pin as an input } void loop() { int ldrStatus = analogRead(ldrPin); //read the status of the LDR value delay(1000); //check if the LDR status is
@kumonuser243911 ай бұрын
Great teaching. I will use this since I am scared of the dark.
@Waiduino11 ай бұрын
Sure no problem!
@manjuyadav-ws4xd11 ай бұрын
Sub + 1
@Waiduino11 ай бұрын
Thank you so much, I only need 2 more subs for my goal of 200 subs before 2024. I really appreciate that! By the way, are you familiar with circuits and Arduino?