PC817 in proteus
First of all you are given the download button below, you will click there And download it
Open these files It will have two files .Add these library files to the folder containing the proteus library folder
Now open your Proteus software, if you have already opened then restart it
Now go to the component search box and write its 817.If you have added the files to the library folder correctly, it will appear in the search box.
You can see your pc817 optocupler in the picture, it has been added in the right way, now you can use it in whatever project you want.