How to detect a variable change?

I want to detect a variable Change.
Example: If ‘receiver source’ change from one channel to another channel then send a notification "Channel change*

Any Idea? Thanx