Can anyone help me, I want to install a motion sensor unit to my front porch lights.. which

Are recessed lights.

I have unscrewed the unit and found there are 3 white cables

I see two...