Simple presece based automation

This video uses if-then method, for the choose method check out the following video.