I have a security lighting in the back of the house but the sensor doesn't seem to work through the connection from the wall switch. I recently tried to replace the security light but when I switched on using the wall switch the light came on but stays on. I thought it was a faulty kit but when I connect it using aa ordinary plug and connect through the wall sockets it works perfectly. Does the problem lies in the wiring in the wall light switch? 
