WARNING: This page is about a different car, the 2003 Nissan Altima. However, it is still accessible from the selected car via links, so may be relevant.
Remove the sunload sensor garnish.
Disconnect the connector.
Release the sunload sensor tabs and then remove it from the garnish.