How to link arrival sensor to light switch

As @ritchierich says, the official recommended method is Smart Lights. Here’s the official instructions:

https://support.smartthings.com/hc/en-us/articles/205380404-Smart-Lights

The scheduler FAQ in the community might also be of interest: