IR receiver always outputs 1023

I am working on a project regarding measuring IR using an AIRSUNNY IR LED diode and receiver. I assumed that the readings from the receiver could be read using the analogRead function and the serial monitor and hooked the receiver up to A0. However, the serial monitor keeps reading 1023 even when the LED is covered. Was I wrong to assume that the readings of the receiver could be measured using analogRead and really it's digital? Is there interference from any surrounding light? Should there be any resistors added somewhere?

smaltz:
Was I wrong to assume that the readings of the receiver could be measured using analogRead and really it's digital?

Yes.

Doesn't the data sheet for the device say how it is to be used?

How did you wire the two of them? A circuit diagram would be best.

Pete

These are data sheets from two receivers that I am trying:
http://arduino-info.wikispaces.com/file/view/IR-Receiver-AX-1838HS.pdf/264668680/IR-Receiver-AX-1838HS.pdf

Would either of these work?

The AX-1838HS is an IR receiver decoder used to detect and decode signals from an IR remote (38KHz). There are libraries available to make use of those devices. Some information.

The LTE-302 is an IR emitter, can't be used as a receiver.