Identify when an object is visibçe

I want to make it so my enemy plays a certaim sound effect only when it is visible on camera, how can I do this?

You can use the OnScreenNotifier-node