What Does a Photoresistor Do? How It Detects Light

A photoresistor is a simple electronic component that changes its electrical resistance based on how much light hits it. In darkness, its resistance can climb as high as 1 megaohm (essentially blocking current flow), while in bright light it can drop to just a few ohms (letting current pass freely). This single property makes it useful in any circuit that needs to detect whether it’s light or dark outside.

How a Photoresistor Works

A photoresistor is made from a semiconductor material, most commonly cadmium sulfide. When photons from a light source strike the material, electrons inside it absorb that energy. If an electron absorbs enough energy, it breaks free from its bond and moves into a higher energy state where it can carry electrical current. The more light hitting the surface, the more electrons get freed, and the easier it becomes for current to flow through the component. Remove the light, and those electrons settle back down, resistance climbs, and current slows to a trickle.

This is purely a passive process. Unlike some other light sensors, a photoresistor doesn’t generate electricity or require any special power arrangement. It simply acts as a variable resistor controlled by light instead of a dial.

Resistance Range and Sensitivity

The swing in resistance is dramatic. In total darkness, a typical photoresistor reads around 1 megaohm, which is high enough to effectively block current in most low-voltage circuits. Expose it to direct sunlight or a bright lamp, and resistance can fall to single-digit ohms. That enormous range is what makes photoresistors so effective as on/off light detectors, even though they aren’t precise enough for fine-grained light measurement.

The spectral sensitivity of a cadmium sulfide photoresistor closely matches the human eye’s response to visible light, roughly 0.4 to 0.76 micrometers in wavelength. That means it reacts strongly to the same colors you can see, peaking in the green-yellow range. Specialized versions exist for ultraviolet and infrared detection using different semiconductor materials like cadmium selenide or gallium arsenide, but the visible-light type is by far the most common.

Where Photoresistors Are Used

The most familiar application is automatic street lighting. A cadmium sulfide cell sits on or near the streetlight and monitors ambient brightness. During the day, low resistance allows current to flow through a transistor circuit, which keeps the light turned off. As the sun sets and the photoresistor’s resistance rises, current drops below the threshold needed to activate the transistor, and a relay switches the streetlight on. The whole system runs without timers or manual intervention.

The same principle shows up in smaller devices: nightlights that turn on when a room gets dark, camera light meters, security systems that detect a broken light beam, and garden solar lights that switch on at dusk. Hobbyists and students use photoresistors constantly in electronics projects because the circuits are so straightforward. You can wire one into a basic voltage divider with a single fixed resistor and read the output with a microcontroller to build a working light sensor in minutes.

Response Time and Limitations

Photoresistors are slow compared to other light sensors. When light hits the surface, resistance drops in about 10 milliseconds. But going the other direction, from light to dark, takes much longer, often around one full second. This lag makes photoresistors unsuitable for anything that needs to track rapid changes in light, like optical communication or high-speed industrial sorting.

Their response to light intensity is also strongly non-linear. Doubling the brightness doesn’t neatly halve the resistance. This makes precise light measurement difficult without calibration and compensation. For applications like street lighting, where you just need to know “is it dark enough to turn on?”, non-linearity doesn’t matter. For scientific instruments that need exact readings, it’s a real drawback.

Photoresistors vs. Photodiodes

If photoresistors are the simple, affordable option, photodiodes are the precision alternative. A photodiode converts light directly into electrical current rather than just changing resistance. Its response time is measured in nanoseconds to microseconds, thousands of times faster than a photoresistor. It also responds linearly to light intensity, making it suitable for accurate light measurement and optical communication systems like fiber-optic networks.

The tradeoff is complexity. Photodiodes produce very small currents that typically need amplification circuitry to be useful. They also require more careful circuit design, sometimes needing a reverse-bias voltage to operate in their fastest mode. A photoresistor, by contrast, is a passive component you can drop into a circuit with minimal supporting parts. For simple projects and basic light-switching tasks, the photoresistor wins on cost and ease of use. For speed, precision, or any application involving rapidly changing light signals, a photodiode is the better choice.

Why Cadmium Sulfide Is So Common

Cadmium sulfide became the standard photoresistor material decades ago for practical reasons. It operates reliably at low voltages (as low as 5 volts), is inexpensive to manufacture, and its spectral sensitivity aligns well with visible light. Research dating back to the 1950s showed that cadmium sulfide photocells were sensitive enough to outperform air ionization chambers and certain photomultiplier setups for detecting radiation, which speaks to the material’s responsiveness.

Newer semiconductor materials like gallium oxide, zinc oxide nanostructures, and perovskites are being explored for specialized sensing applications, offering advantages like faster response and better stability under harsh conditions. But for everyday light detection in consumer products and hobby electronics, cadmium sulfide remains the default because nothing else matches its combination of simplicity, cost, and adequate performance for the job.