Oh, it looks like there's a typo in the data sheet: page 1, Product Summary, mentioned in the last two lines:
- 2N5154RSRHRx, ESCC, 5203/010, SMD.5, 100 krad, LDR, emitter on pin 1
- 2N5154SRHRx, ESCC, 5203/010, SMD.5, Emitter on pin 2
should be read as:
- 2N5154RSRHRx, ESCC, 5203/010, SMD.5, 100 krad, LDR, emitter on pin 2
- 2N5154SRHRx, ESCC, 5203/010, SMD.5, Emitter on pin 2
But table 7, ordering information correctly lists the options of the pin-out.
Yes, you can use your diagram with the red marked pin numbers for this part number.
Regards
/Peter
P.S.: It is permissible, but it is still not a good idea to reply by email to messages from the community, because the reply email usually sends all private data (telephone numbers, addresses, etc). This is then visible to everyone in this community, which is open to the public worldwide. To ensure data protection, you should therefore not reply by email, but via the community's web interface.