

The KY-018 LDR Photo Resistor, manufactured by AZ-Delivery (Part ID: KY-018), is a light-dependent resistor (LDR) that changes its resistance based on the intensity of light falling on it. This component is widely used in light sensing applications, such as automatic lighting systems, light meters, and DIY electronics projects. Its ability to detect varying light levels makes it an essential component for projects requiring light-based automation or monitoring.








The KY-018 module consists of an LDR and a fixed resistor, forming a voltage divider circuit. Below are the key technical details:
| Parameter | Value |
|---|---|
| Manufacturer | AZ-Delivery |
| Part ID | KY-018 |
| Operating Voltage | 3.3V to 5V |
| Resistance Range | ~10 kΩ (bright light) to ~1 MΩ (dark) |
| Power Consumption | Low |
| Operating Temperature | -30°C to +70°C |
| Dimensions | 18mm x 10mm x 2mm |
The KY-018 module has three pins, as described below:
| Pin Name | Description |
|---|---|
| Signal | Outputs the analog voltage signal proportional to light intensity |
| VCC | Power supply input (3.3V to 5V) |
| GND | Ground connection |
Connect the Pins:
Read the Signal:
Voltage Divider:
Below is an example of how to use the KY-018 with an Arduino UNO to measure light intensity:
// KY-018 LDR Photo Resistor Example Code
// Reads the analog signal from the KY-018 module and prints the light intensity
// to the Serial Monitor.
const int ldrPin = A0; // Connect the Signal pin of KY-018 to Arduino A0
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
pinMode(ldrPin, INPUT); // Set the LDR pin as input
}
void loop() {
int ldrValue = analogRead(ldrPin); // Read the analog value from the LDR
Serial.print("Light Intensity (Analog Value): ");
Serial.println(ldrValue); // Print the light intensity value to Serial Monitor
delay(500); // Wait for 500ms before the next reading
}
| Issue | Possible Cause | Solution |
|---|---|---|
| No output signal | Incorrect wiring | Double-check the pin connections. |
| Signal value not changing | LDR not exposed to varying light levels | Test with a flashlight or cover the LDR. |
| Unstable or noisy readings | Electrical noise or loose connections | Use shorter wires and ensure secure connections. |
| Arduino not detecting the module | Incorrect analog pin configuration | Verify the pin number in the code. |
Can the KY-018 detect infrared light?
What is the maximum distance for light detection?
Can I use the KY-018 with a Raspberry Pi?
How do I map the analog values to lux (light intensity)?
By following this documentation, you can effectively integrate the KY-018 LDR Photo Resistor into your projects for reliable light sensing functionality.