Retinal is a good example of a molecular photoswitch and is found in the naturally occurring channelrhodopsins.
Retinal functions as an illustrative example of a molecular light-sensitive molecule, which is also found in the naturally occurring proteins called channelrhodopsins that regulate biological processes.