Use sensor to dim in lights when walk in

I am trying to use some motion or presences sensor to trigger my lights to slowly dim in 0 to say 50% when I walk into the house. But not sure what’s the best set up for this.

Thank you