TomGeorge:
Hi,
Have you got current limit resistors on the LEDs?It would be easier for you to hand draw your circuit and photograph it.
Can you post a pic of the sensor?Thanks.. Tom..
Hi Tom,
I have already posted the circuit diagram along with the code. It is the exact circuit that I have described. Let me know if I have not uploaded it correctly.