Why does motion sensor switch turn light on immediately after switching off?
Most of these lights have a built in test mode….If you turn the Wall switch off then back on it will go into test mode and function as you describe. By switching it again it should reset to normal operation. Once the switch is in the “on” position leave it there. Also on motion detectors, there is a switch on the bottom of the fixture for testing. Follow the manufactures instructions and you should be fine.