WARNING: This page is about a different car, the 2016 Hyundai Elantra and 2015 Hyundai Elantra. However, it is still accessible from the selected car via links, so may be relevant.
Disconnect the negative (-) battery terminal.
Disconnect the Sensor cover (A) and then remove the auto defogging sensor (B).