Since this plugs into an outlet, if the outlet is controlled with a wall switch, you can turn the fixture on and off with the wall switch. If your motion sensor is no longer working, please reach out to customer service at