Using phototransistors - hardware check.

You have a spare one?

Emitter collector voltage VECO 1.5 V

The above is the maximal reverse voltage the thing can take. By reversing the connection you have already burnt it.

Short leg on the filed flat edge is collector and should be on higher voltage (collector-resistor---5V). Long leg on the circular edge is emitter and should be on lower voltage (gnd).

BTW, I burnt one IR receiver and an accelerometer. Hope that makes you feel better.