PIR switches the lamp on movement, only when it is dark.
Tap any wire, switch or device to see what it is.
The PIR needs L and N to power itself; its switched-live output (L-out) feeds the lamp.
Most PIRs include a light-level (lux) setting and adjustable timer.
Study notes paraphrased — check against your copy of BS 7671.