raschemmel:
I don't that sensor is going to work with collector pulled up to GND . Try moving the resistor to +5V rail instead.
thanx for the reply...but could you please explain it a bit more??
I am using a 150 ohm resistor for the emitter and 10k resistor for the detector and both are on GND side.What should I do??
How would you connect these if it was you?? ![]()