IR sensor help

And how have you got it wired up and what value are the resistors.
It sounds like you have this bit wrong.