

The Photosensitive Sensor Module by uxcell is an electronic component designed to measure the intensity of light in an environment and convert it into a corresponding electrical signal. This module is commonly used in applications such as automatic lighting control, daylight harvesting systems, and in devices that adjust their operation based on ambient light conditions.








| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | VCC | Power supply (3.3V to 5V DC) |
| 2 | GND | Ground |
| 3 | DO | Digital output (high/low based on threshold) |
| 4 | AO | Analog output (voltage proportional to light intensity) |
// Define the pin connected to the analog output of the sensor
const int lightSensorPin = A0;
void setup() {
// Begin serial communication at a baud rate of 9600
Serial.begin(9600);
}
void loop() {
// Read the value from the light sensor
int sensorValue = analogRead(lightSensorPin);
// Convert the reading to voltage
float voltage = sensorValue * (5.0 / 1023.0);
// Print out the value in volts
Serial.print("Voltage: ");
Serial.println(voltage);
// Wait for 100 milliseconds before reading again
delay(100);
}
Q: Can the sensor be used outdoors? A: Yes, but it should not be exposed to direct sunlight or harsh weather conditions without proper casing.
Q: What is the purpose of the onboard potentiometer? A: It is used to set the threshold for the digital output. When the light level exceeds this threshold, the DO pin will switch from LOW to HIGH.
Q: How do I convert the analog reading to a light intensity value? A: The analog reading is proportional to the light intensity. You can calibrate the sensor with known light levels to create a conversion factor.
Q: Is the sensor sensitive to all types of light? A: The sensor has peak sensitivity at 540nm, which is in the visible spectrum, but it can detect a range of light wavelengths.
Remember, this documentation is a starting point for working with the Photosensitive Sensor Module. Always consult the manufacturer's datasheet for the most detailed and specific information regarding the component.