News

To use a dark sensor instead, connect LM358 ‘s pin 7 of to one of Arduino’s digital I/O pins. As a dark sensor, the circuit will output as HIGH when it’s dark and a LOW when there’s light. The output ...
Connect the A0 pin of the Arduino to the same column where the LDR and resistor is connected (Since the LDR gives out an analog voltage, it is connected to the analog input pin on the Arduino. The ...
Serial.println("LDR value:");//display "LDR value:" on serial monitor and set the cursor to the new line Serial.println(LDR_value);// print the value of sensor else //if LDR_value value is high that ...