Thanks ck. I suspect it is polarity sensative as the sensor consists of a transmitter and a receiver I.R Led, there are 3 wires on the plug One is common to both the transmitter and receiver and of the other Two One goes to the transmitter led and the other the receiver. But thanks for the suggestion anyway.
William
December 2010