resistance of the sensor changes with intensity of the light and consecutively output voltage also changes. The arduino board can be used along with LDR sensor in order to read the analog voltage. By programming threshold value in the code and reading the realtime values of the voltage from LD...
The wiring schematic is very simple. We have connected the GND pin of the KY-018 LDR Module to the GND pin of our Arduino Board. Then we connected the middle pin to 5V, and at last we connected the S pin to pin A0 of our Arduino Board. These connections can be seen in the schema...
We will use an Arduino library for the BH1750 light sensor. Go to this link and download the Arduino library. This library is provided by claws on Github. One of the major pros of using this library is that we do not have to worry about the internals of module and configuration settings...
So let’s start with introduction to LDR or light dependent resistor. Figure of light dependent resistor is shown below. LDR has two Terminal Like a normal resistor. but this is not a normal resistor it is a light dependent resistor whose resistivity changes with the light intensity. as menti...