WARNING: This page is about a different car, the 2009 Nissan Maxima. However, it is still accessible from the selected car via links, so may be relevant.
Installation is in the reverse order of removal.
CAUTION:
Never reuse O-ring.
Apply CVT fluid to O-ring.
Fig 1: Identifying Secondary Speed Sensor, O-Ring And Shim