HELP How can I create a distance detector to change the light intensity?

I checked on blueprints and I see some distance options, but I don’t know which option is better to use.

actually just set up something to do just that the other week, it works here so might help

only thing I would do different is an Finterp to dim up/down.