To connect an LDR correctly it must be part of a voltage dividerCode: [Select]+5V <----> [ LDR ] <-----> [A0] <------> [Resistor] <-----> GNDThe value of resistor must be in the same order as the LDR when in the dark. (a 10 K will work probably too)
+5V <----> [ LDR ] <-----> [A0] <------> [Resistor] <-----> GND
... the other leg on the LDR connected to ground and analog in put port "A0".
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16