Problem with connecting the IR sensor

I am trying to connect the IR sensor from the tutorial to the project board. However my wires are messed up. In the picture that comes with the tutorial:


The red wire on the left side of the sensor goes into the outermost pin, the middle black wire goes into the innermost pin and the right white wire goes into the middle.

My IR sensor has a complete different set up. The red wire on the left goes in the middle, the middle black wire and the right yellow wire go into the sides. (I don't know on which side they'll go into the pins thanks to this)


How should I turn it into the board? With the yellow wire in the innermost or the outermost pin?