It is probably:
Red: Supply In
Yellow: Load
Blue: Neutral
but you can check in the consumer unit that the red goes to an MCB and the yellow goes to a floating terminal block or similar to the lights cable. There should be an isolating switch between the consumer unit and the sensor so if...