I have that code for the cam sensor. I always have to clear it before running the Learn or the Learn won't initialize.