If an object or part of the body is detected while the sunroof is closing automatically, it will reverse direction, and then stop.
The auto reverse function does not work if a small obstacle is between the sliding glass and the sunroof sash. You should always check that all passengers and objects are away from the sunroof before closing it.
Kia Niro 2017 (DE HEV) Service Manual: Brake Pedal Repair procedures
Removal
1.
Turn ignition switch OFF and disconnect the negative (-) battery terminal.
2.
Remove the crash pad lower panel.
(Refer to Body - "Crash Pad")
3.
Remove the knee air bag.
(Refer to Restrain ...
Kia Niro 2017 (DE HEV) Service Manual: Motor Temperature Sensor Circuit diagram
Part Circuit Diagram
[Hybrid Drive Motor]
[HSG]
...