Light Sensors – Working Principles, Types, and Application

Choose a light sensor by its output, response speed and spectral sensitivity: compare LDRs, photodiodes, phototransistors and ambient light sensor ICs.

JS

Jack Shi

Author

Oct 6, 2026

Updated

7 min read

Read Time

Quick answer: Choose an ambient light sensor IC for measuring brightness as people see it: according to Texas Instruments, the OPT3001 closely matches the human eye’s response. For a resistance-based light detector, use an LDR; according to Wikipedia, its resistance falls as illumination increases.

The useful distinction is what you need from the signal: a light/dark indication, detection of changing light, or an illuminance reading. This guide compares the sensing principles, gives concrete device specifications, and shows how a lighting target translates into a sensor range. For the wider lighting plan, the LEDask calculator hub brings the site’s lighting tools together.

Which type of light sensor should you choose?

Choose by output and measurement purpose before comparing sensitivity. A resistance change, a photocurrent and a digital brightness reading require different interpretations.

Sensor typeWhat changes with light?When to consider it
Photoresistor / LDRResistance decreases as illumination increases, according to WikipediaA resistance-based light/dark detector
PhotodiodeAbsorbed photons produce current, according to WikipediaMeasuring an optical signal as current
Bipolar phototransistorThe transistor amplifies its light-generated junction current, according to WikipediaDetection where amplification within the sensing component is useful
Ambient light sensor ICIntegrated sensing and conversion provide digital light measurements; Vishay describes this arrangement in the VEML7700 datasheetReading room brightness digitally

Start with the quantity you actually want to measure. Lux describes illuminance: lumens arriving per square metre. If your goal is a lux reading, a component’s electrical response alone is not the same specification as its illuminance measurement range.

How does an LDR work?

An LDR responds through resistance. According to Wikipedia’s photoresistor reference, it is passive, and its resistance decreases as illuminance on the sensitive surface increases. That preserves the useful part of the simple light-sensor explanation: brighter light changes the resistance rather than directly supplying a calibrated brightness reading.

According to the same reference, resistance can reach several megaohms in darkness and fall to a few hundred ohms in light, with values varying between devices. Those are broad examples, not endpoints that should be assigned to every LDR or used to calculate lux from an unidentified part.

Speed is the more consequential limitation. Wikipedia gives a usual dark-to-light latency of around 10 ms and a light-to-dark delay often reaching one second; it also notes temperature dependence. An LDR is therefore a candidate for slowly changing light levels, but a poor starting point for rapidly flashing light. Do not interpret its delayed resistance change as the timing of the optical event itself.

When should you use a photodiode or phototransistor?

Use a photodiode when the signal you want is photocurrent. According to Wikipedia’s photodiode reference, that current is approximately proportional to irradiance for a fixed spectral distribution. The spectral condition matters: the claim does not mean that every light source produces the same current at the same lux reading.

Bias mode introduces a trade-off. According to Wikipedia, photovoltaic operation uses zero bias, while reverse-biased photoconductive operation is faster but can introduce more electronic noise from dark current. Choose the mode around the signal’s timing and noise requirements.

A concrete example is the BPW34. According to Vishay’s BPW34 datasheet, its spectral bandwidth is 430–1100 nm, with peak sensitivity at 900 nm. Its response therefore includes near-infrared light; this is not a sensor specified solely around human-visible brightness.

The same Vishay datasheet lists typical rise and fall times of 100 ns each at a reverse voltage of 10 V, a load resistance of 1 kΩ and a wavelength of 820 nm. Keep those test conditions attached to the number: it is a device specification under stated conditions, not the guaranteed response of a complete reader circuit.

A phototransistor adds amplification within the component. According to Wikipedia’s phototransistor reference, light-generated current at the base-collector junction is amplified by transistor current gain. That explains the distinction without assigning a universal gain multiplier or claiming a particular detection limit.

What makes an ambient light sensor IC different?

An ambient light sensor IC is the stronger starting point when the objective is human-perceived brightness. According to TI’s OPT3001 datasheet, its spectral response closely matches the photopic human-eye response, its measurement range is 0.01–83,000 lux, and its typical infrared rejection exceeds 99%. Those specifications directly address the mismatch between detecting optical energy and measuring visible illumination.

Range and resolution must be considered together. Vishay’s VEML7700 datasheet describes a 16-bit digital sensor with a range from zero to about 140,000 lux and resolution down to 0.0042 lux per count. However, its application note limits that finest resolution to a smaller range of approximately zero to 230 lux at high gain.

That distinction changes how you choose settings. Do not combine the largest headline range with the smallest lux-per-count figure as if they applied simultaneously. Specify the brightness range you need first, then select a setting that covers it; resolution describes the reading increment, not a promise that the entire measurement is accurate to that increment.

Worked example: does the sensor cover your lighting target?

Convert the lighting target to lux before comparing it with a sensor’s range. The foot-candle calculator uses an office target of 50 foot-candles as the calculator’s planning figure and converts foot-candles to lux using 10.764. Here, the office target is an assumed design input, not a verified lighting requirement.

Assumed input: target illuminance = 50 foot-candles.

  • Formula: target lux = target foot-candles × 10.764.
  • Substitution: target lux = 50 × 10.764.
  • Result: target lux = 538.2 lux.

According to TI’s datasheet, the OPT3001 covers 0.01–83,000 lux, so the comparison is 0.01 ≤ 538.2 ≤ 83,000: the assumed target lies inside its stated range.

For the VEML7700’s finest-resolution setting, 538.2 lux exceeds the approximately 230 lux upper range described in Vishay’s application note. That setting would not cover this target, even though the sensor offers a much wider range at other settings. This calculation checks range coverage; it does not establish measurement accuracy or select the complete sensing circuit.

FAQ

Is an LDR the same as a photodiode?

No. According to Wikipedia, an LDR changes resistance as illumination changes, whereas a photodiode produces current when it absorbs photons. Choose around the electrical quantity you need to read.

Which sensor should I use for room brightness?

Start with an ambient light sensor IC whose response is matched to visible illumination. According to TI, the OPT3001 closely matches the human-eye response and rejects infrared, making those useful selection criteria.

Can a photodiode detect infrared?

Yes, depending on the device. According to Vishay, the BPW34’s spectral bandwidth extends from 430 to 1100 nm, so its response includes near-infrared light.

Why reverse-bias a photodiode?

According to Wikipedia, reverse-biased photoconductive operation is faster, but it can bring more electronic noise from dark current. Zero-bias photovoltaic operation is the alternative mode.

Does finer resolution mean the sensor measures brighter light?

No: resolution and range are separate specifications. Vishay’s VEML7700 application note puts the finest 0.0042 lux-per-count resolution in an approximately zero-to-230-lux range, so a brighter target requires a different setting.

JS

Jack Shi

Founder & editor, LEDask

Jack Shi builds and writes LEDask, an independent LED-lighting tools project operated by clooms. He designs the calculators, checks their formulas and reference values against published engineering data, and writes the guides across the site.

LED LightingEnergy EfficiencyHome Electrical