How many pins do the receiver ones have?
If it has two pins it is likely a phototransistor or photodiode.
The ones with three pins contain a photodiode as well as a bunch of other magic (filters, amplifiers, demodulators) to ensure that the device receives signals that are modulated at a certain frequency, typically 10s of kHz. They will have a supply pin, a ground pin and a signal pin.