Please come check out EFbot; Testing thread is here. Come see what it can do. . Tag it in any thread using @efbot you will need give it a few seconds and refresh a page for it to post a reply post.
Sorry about this - Sensor has blue, brown, white --- light has blue, brown and earth - if I connected brown (light) to white (sensor) What about Brown (sensor) ??