Being a sensor, i would assume a fault that won't clear may indicate it needs calibrating first? That is if the sensor is working as intended and does not have a fault.
I have checked and the gear indicator system is normal. But cannot delete the code. So I unplugged Then plug it back in again. Count the cars out for testing. Then I brought it back and scanned the code and it disappeared. Thank you for your comment.