Most PIR-based occupancy sensors require a minimal level of ambient light to detect infrared radiation accurately. Some advanced sensors, like image processing sensors, can function in complete darkness.