Introduction
Smart lighting systems combine PIR occupancy sensing with daylight harvesting to maximize energy savings. This article explains the integration and best practices.
What is Daylight Harvesting?
Daylight harvesting automatically dims or turns off electric lights when sufficient natural light is available. A photosensor measures ambient light level and sends this information to the lighting controller.
Combining with PIR Occupancy
The full smart lighting system uses:
- PIR sensor: Detects if space is occupied
- Photosensor: Measures ambient light level
- Controller: Makes decisions based on both inputs
Control Logic
If (occupied) {
If (ambient light < desired level) {
Turn lights ON (or dim to supplement)
} else {
Keep lights OFF (or dim to minimum)
}
} else {
Lights OFF (or very low for safety/security)
}
Integration Options
Separate Sensors
Independent PIR and photosensor connected to a central controller. Flexible but requires more wiring.
Combined Sensor Units
Many manufacturers offer sensors combining PIR and photosensor in a single housing. Examples: Leviton OSSMT-GDW, Lutron LRF2-OCR2B-P, Hubbell H-MOSS series.
Sensors with I2C Interface
Digital PIR sensors can be combined with digital light sensors on the same I2C bus, read by a microcontroller.
Daylight Sensor Placement
- Ceiling-mounted, facing down: Measures light on work plane
- Near windows: Measures incoming daylight
- Avoid direct sunlight: Can saturate sensor
Calibration
The system needs calibration to set:
- Desired light level (setpoint)
- Deadband (to avoid oscillation)
- Fade rates (smooth transitions)
- Minimum dim level
Energy Savings
Studies show that combining occupancy sensing with daylight harvesting can save 30-60% of lighting energy compared to manual control.
Implementation Example with Arduino/ESP
int pirPin = 2;
int lightSensorPin = A0;
int lightSetpoint = 300;
int lightOutput = 9;
void loop() {
bool occupied = digitalRead(pirPin);
int lightLevel = analogRead(lightSensorPin);
if (occupied) {
if (lightLevel < lightSetpoint) {
int required = map(lightSetpoint - lightLevel, 0, 1023, 0, 255);
analogWrite(lightOutput, required);
} else {
analogWrite(lightOutput, 0);
}
} else {
analogWrite(lightOutput, 0);
}
delay(1000);
}
Conclusion
PIR sensors are essential components of smart lighting systems. Combined with daylight harvesting, they deliver maximum energy efficiency while maintaining occupant comfort.
