Hyundai Elantra: Removal - Camshaft Position Sensor (CMPS). Repair 
procedures - Engine Control System - Fuel System - Hyundai Elantra MD 2010-2015 Service manualHyundai Elantra: Removal

DON’T remove the camshaft position sensor during engine running or right after engine stops, or a scald by the flowed out engine oil may occur.
[Bank 1 / Intake]
1.
Turn the ignition switch OFF and disconnect the battery negative (-) cable.
2.
Disconnect the camshaft position sensor connector (B) after removing the clip (A).
3.
Remove the installation bolt (C), and then remove the sensor.

[Bank 1 / Exhaust]
1.
Turn the ignition switch OFF and disconnect the battery negative (-) cable.
2.
Disconnect the camshaft position sensor connector (B) after removing the clip (A).
3.
Remove the installation bolt (C), and then remove the sensor.