Photoresistors, LDR Light Sensors and Control Modules
A photoresistor, also called a light-dependent resistor (LDR), is a two-terminal component whose resistance changes with incident light. This collection includes individual GL-series LDRs, multi-value assortments, small SMD light-sensitive resistors, comparator-based light sensor boards and powered photoresistor relay switches. These are related tools for detecting ambient brightness, but they are not electrically interchangeable: a bare LDR supplies a resistance change, a sensor board produces a conditioned signal, and a relay module switches a separate load.
What is in the assortment?
- Through-hole LDRs: many listings offer GL5506, GL5516, GL5528, GL5537, GL5539, GL5547 and GL5549 variants in roughly 5 mm families, with some GL12528 and related 12 mm disc choices. Some listings are 20-, 50-, 100- or 1,000-piece single-code packs; others are mixed-value sample kits. Read the selected option to determine actual code, disc size and quantity.
- SMD photoresistors: GT36516, GT36528, GT36537 and GT36549-style small surface-mount options require their own footprint and optical placement. An SMD package is not a drop-in mechanical replacement for a radial disc.
- Light sensor boards: 3-pin sensor boards and LM393-style comparator modules commonly expose an analog voltage and/or thresholded digital output, depending on the exact board. Confirm pin labels, supply range, output polarity, adjustment method and microcontroller input compatibility for the chosen version; a marketing label such as “digital” or “analog” is not sufficient.
- Light-controlled relay switches: XH-M131 and other 5 V, 12 V or 24 V DC module options combine light detection with switching. Their supply selection, relay contacts, isolation, hysteresis and actual load rating must be verified on the chosen board. A “10 A” listing label does not establish that every AC or DC load is safe at that current.
How to select an LDR or light-control board
- Decide what your circuit needs: a resistance-changing element for a divider, a measured analog signal, a digital light/dark threshold, or a relay contact for an external load. The LDR itself is passive; comparator and relay boards require a suitable power supply.
- For a bare LDR, compare the full response: check light resistance at a specified illuminance and wavelength, dark resistance after a specified dark-adaptation time, the resistance-versus-lux curve, spectral response and response/recovery time. A GL number or “5 mm” size does not uniquely state these values across suppliers.
- Check electrical and mechanical limits: verify maximum allowable voltage and power, operating temperature, lead spacing or SMD footprint, orientation and whether an enclosure or window changes the incident light. A simple resistor-divider output is dependent on supply and reference resistor and is not a calibrated lux reading.
- For boards, verify the interface: match the chosen 3.3–5 V, 5 V, 12 V or 24 V supply variant, signal pinout and voltage levels; for relay boards verify contact rating by load type and any required protection. A board named for Arduino does not guarantee direct compatibility with all ESP32, Raspberry Pi or other inputs.
- Count the pieces: a model-number option may choose a 1-, 3-, 5- or 10-piece module pack, while a resistance option may select both LDR type and package quantity. Check the exact variant before checkout.
Applications and limits
LDRs can serve light/dark switching experiments, adjustable ambient-light controls, robotics and educational sensor circuits. Their resistance is nonlinear and device-to-device variation, aging, temperature and spectral sensitivity can matter. For calibrated illuminance measurement or fast optical communications, use a sensor specified for that task instead of treating a basic photoresistor as a lux meter, photodiode or phototransistor. Modules with a relay add powered control and mechanical switching; they do not make the bare LDR mains-rated. Use qualified design and installation practices for any circuit connected to hazardous voltages.
Purchase checklist
Record the intended function, exact GL/GT model or board revision, expected light range and spectrum, light/dark resistance test conditions, acceptable response time, voltage and power limits, physical size, pinout and supply requirement, output type, relay-load characteristics if present, and pieces per selected option. Use the individual product's verified specifications when a listing mixes model numbers or displays implausible generic attributes.
Frequently asked questions
Is GL5528 the same as GL5539?
No. They represent different selectable light-dependent-resistor references; check each part's resistance values at specified light levels and response curve before substituting.
Does an LDR output a digital signal?
Not on its own. A bare LDR changes resistance. A powered comparator board can turn a light-dependent voltage into a digital threshold output.
Can I connect a 12 V relay module to a 3.3 V microcontroller?
Do not assume so from the title. Check the module supply, control-interface levels, grounding, output and relay-contact specifications for the exact version.
Does a waterproof label mean the whole light-switch board is outdoor-rated?
No. Confirm which part is sealed, the enclosure rating and installation conditions documented for the selected assembly.