KY-018 Photoresistor Module - ArduinoModulesInfo
Maybe your like
The KY-018 Photoresistor module is used to measure light intensity. The resistance will decrease in the presence of light and increase in the absence of it. The output is analog and determines the intensity of light.
Compatible with many popular microcontrollers like Arduino, ESP32 and others.


KY-018 Specifications
This module consists of a photoresistor, a 10 kΩ in-line resistor and 3 male header pins.
| Operating Voltage | 3.3V ~ 5V |
| Output Type | Analog |
Connection Diagram
Connect the Power line (middle) and ground (-) to +5 and GND respectively. Connect signal (S) to pin A2 on the Arduino.
| KY-018 | Arduino |
|---|---|
| S | Pin A2 |
| middle | +5V |
| – | GND |

KY-018 Arduino Code
The following Arduino sketch will output readings from the photoresistor, cover the module with your hand to prevent light on it and the output values will be low, point a light to the sensor and the values will be high.
int sensorPin = 2; //define analog pin 2 int value = 0; void setup() { Serial.begin(9600); } void loop() { value = analogRead(sensorPin); Serial.println(value, DEC); // light intensity // high values for bright environment // low values for dark environment delay(100); }Downloads
- Fritzing Part: KY-018 Photoresistor Module.
- Fritzing Official Site.
Tag » Arduino Ky-018 Photoresistor Module
-
Photo Resistor Example - KY-018 - Arduino Project Hub
-
KY-018 Photoresistor Module - YouTube
-
KY-018 Photoresistor Module Control LED With Arduino - YouTube
-
KY-018 Fotowiderstand - SensorKit X40
-
Arduino KY-018 Photo Resistor Module - Sensors
-
KY-018 Datasheet, Equivalent, Photoresistor Module.
-
Using The Photoresistor Module KY-018 With Arduino
-
KY-018 Photo Resistor Module By Herrerodani - Codebender
-
Φωτοαντίσταση - KY-018 - GRobotronics
-
Keyes KY-018 Module De Résistance Photo Pour Arduino - Hobbyking
-
KY-018 Photoresistor Light Sensor Module - Einstronic Enterprise
-
KY 018 Photo Resistor Module - Microdaz Blog
-
Dosige Ky 018 Photoresistor Module Single Chip Lichtempfindliches ...