Test that the power is indeed off by turning on the light switch to the light to make sure it stays off.

To be doubly safe, have a wire tester handy and test the wires connected to the old light to ensure no power is running to them before you actually touch them. [2] X Research source

Occasionally, especially on older homes, the hot wire may be a color other than black or red such as yellow. [4] X Research source

There will be a small colored screw inside the light fixture near where the other two wires exit the casing. You will tighten the copper ground wire down around this screw by simply loosening the screw, looping the ground wire over it, and tightening the screw back down to make constant contact with the wire. [10] X Research source

If there’s a specific corner you want the sensor to stop reacting to—such as a dog’s dog run beside the house—you can place a small piece of electrical tape on that corner of the sensor to stop it from receiving the data. Just make sure you don’t tape further over than you intended. You can test it by placing the tape and walking beside it to see where the sensor’s field of vision picks back up and adjust accordingly.