I know that the LDR sensor value changes depending on the external light.
The resistance of the photoresistor will be reduced as the incident light intensity is increased.
If sensorValueLeft is bigger than sensorValueRight, I wonder how the intensity of light in the side left? (Realtively)
Please.
Hi, welcome to this forum,
LDRs are often used in a voltagedivider-circuit, with another constant resistor.
Using the +5v-pin as Vin and 0v connected to ground, you can connect'm two ways, in the circuit left, the higher the amount of light, the higher Vout, while the right will result in lower voltage, the more light the LDR receives.
So, it depends on how your voltage divider is connected.