raschemmel:
I don't that sensor is going to work with collector pulled up to GND . Try moving the resistor to +5V rail instead.
What does this say ?
What do you see when you look at the photo I posted ?
I don't know how you could not understand this. Your pullup resistor for the transistor is NOT connected to +5V !
It is connected to GND !
LOOK AT THE PHOTO I POSTED and read my comment above again
didnt work that way either...Its giving me some 20 - 80 value...is there any other way i should try??
thanx alot for taking your time to help me...I am a noob in this field and has no guidance other than this forum.