Optoisolated relay?

For true isolation, you don’t connect the Photon’s Ground to the relay at all.

image

As per the picture, this requires a dedicated power supply for the relay.
You activate a relay by driving the Photon pin LOW.

This page was very helpful to me.