add example

example: use a switch to control remote relay