What terminals (markings) where the blue, yellow, red and earth wire connected to in the old floodlight?
What terminals (markings) are the blue, yellow, red and earth wire connected to in the separate PIR?
Clear photographs of both the incoming and outgoing wires of the PIR would be helpful.