-->

Photoresistor (LDR) giving weird readings in bright vs dim light

J
Jason R.
Asked on May 14, 2026 • TechCrate Bench Q&A
Wired up a photoresistor voltage divider like the book shows, reading it on A0. In bright light I get a low number and in the dark I get close to 1023. Is that backwards from what should happen?
TechCrate editorial answer

Bench Answer

Nothing is broken β€” an LDR's resistance drops in bright light and rises in darkness, so whether A0 reads high or low in bright light just depends on whether the LDR sits on the top or bottom half of your voltage divider. Your wiring (LDR on the bottom, near GND) produces exactly the low-in-bright/high-in-dark pattern you're seeing. **The voltage divider midpoint follows:**

**V_out = 5V Γ— (R_bottom / (R_top + R_bottom))**

- **LDR on top** (between 5V and A0), fixed resistor on bottom: in bright light the LDR resistance drops, so more of the divider's share goes to the fixed resistor β€” A0 reads **HIGH in bright light**.
- **LDR on bottom** (between A0 and GND), fixed resistor on top: in bright light the LDR resistance drops, pulling A0 toward GND β€” A0 reads **LOW in bright light**.
Unlock the full bench walkthrough

Members get the complete diagnostic workflow, every measurement to take and the verification checklist.

Unlock Digital VIP · $4.99/mo →
← Back to TechCrate Community HubAsk a Bench Question →

Build Hands-On Projects Every Month with TechCrate

Get complete component kits, companion video guides, and 24/7 AI bench troubleshooting delivered to your door starting at $14.99/mo.

Get TechCrate Today (Free Shipping) →

Free Shipping

On orders over $50

Fast Shipping

Ships within 24 hours

Secure Checkout

256-bit SSL encrypted

Family Owned

Since 2013 in Pine Hill, NJ

Follow us for tutorials, product demos, and maker inspiration!
Added to Cart!