I'm sorry but I sold my Tronxy X5S, so I don't have any other photos to publish, but I hope you can understand the installation of my adapters.
Obviously the board firmware must be adapted to optical endstops.
On my X5S I had enabled the independent double Z, as you can see in photo.
I've published two types of optical endstop adapter, use the one that makes you more comfortable, can be used on other printers with 2020 profiles.
You must use a filament that is able to activate the optical endstop, many as transparent ones are not good.
In that case you just have to paint the tip of the actuator with a black marker like in my photos.