I'm having this very same problem. I was riding one day and at a stop light, the bike stalled and when I went to restart it, it illuminated the check engine light when I would try to start it. I tried holding the button to start the engine and then the check engine light remained on constantly with error code 12 showing. I bought a new battery and that did not solve the problem. I pulled off the cover to see the sensor and everything looks fine. When I rock the bike back and forth in gear, the error goes away but when I try to start it, I get the check engine light and clicking. Any help or advice would be greatly appreciated. I am to the point where I am probably going to take it to a mechanic tomorrow morning.