How detect if there is 850 nm IR-light?

Hallo, i try to detect IR-light with 850 nm and later also IR-light with 940 nm.
In the best case i have a sensor with gives me a 1/true/high when he detect this specific light, do not matter how strong it is.

I tried to use a IR-reciver but it is more for communication over IR-Signals. I also bought a phototransistor for 940 nm and tried to register the 850 nm light and 940 nm ligth with this sensor but it does not work. When i understand the phototransistor sensor right, it gives me a range value, depends on how much light is hitting the sensor. But this is not exactly what i looking for.

Can someone give me some tipps? Is a phototransistor the right way to do this or is there a better solution?
If a phototransistor can do the job, how can i do it with this sensor?

This are the sensor data:

Ausgestrahlte Farbe: Infrarot
Wellenlänge: 940nm
Vorspannung (V): 1.2-1.4V
Vorwärtsstrom (mA): 100mA
Sende- und Empfangsabstand: ca. 7-8 Meter

Perhaps this could be done with a prism (made for use with IR wavelengths) or a grating. You could then place apertures behind the prism/grating at positions/angles corresponding to 850 & 940nm and place general purpose IR light sensors behind those apertures.

What generates the "850 nm" light and what range of wavelengths do you want to detect?

The device is a spotlith/IR-LED with a wavelengths of exactly 850 nm. So no range of wavelengths needed.

The idea with the prism as a filter is interesting. Hopefully there is a simpler solution. Anyway thank you for your advice.

No, even an IR laser diode emits a range of wavelengths, and typical IR LED has an emission bandwidth of 40-50 nm, as shown below. So, a detector sensitive to the range 830 to 880 nm will work just fine. One such detector would be either an 940 or 850 nm LED, used as a photodiode. See How to Use LEDs to Detect Light - Make:

Capture

Copied from Large Near-infrared [NIR] LED Modules | LED Lighting For Everything