i bought a cny70 and don't know how to use it can it tell the difference between white and black colours?
Sorry --how to hook it up
In terms of a “rating” the datasheet is above.
Hooking it up --Basically, you have 2 parts, a IR LED and a IR phototransistor. First off, get the LED glowing. You will need to add a resistor to keep the current draw in check. Here is how to do that.
Next, you need to “read” what the phototransistor is “seeing”. One way to do this is to read it with a ADC input as you would any other analog sensor. The wiring will be almost identical to the wiring of say, a LDR and can be found in many tutorials and examples. It requires only one pull-up resistor, a wire going to your ADC pin and a ground. Schematics should be very easy to find.