Hi, Jamie_fry200, it should be noted that the reasons your check engine light or CEL stays on constantly or flashes and your bike will or will not start and may turn over or not, these conditions will vary from bike to bike depending on the year, make, and model and you should always refer to your owners/service manual for proper diagnostic procedures. It should also be noted that any type of prior work done to the bike or an abnormal event occurrence IE: adding accessories, electrical curiosity/adventures, laying bike down/crashes, rainstorms/bike washings just before CEL light issues started can be significant hints/aids into tracking down the gremlin, also carry the appropriate jumper wire to access fault codes to reduce the risk of being stranded or towed also keep in mind that your CEL comes to life if anything, and I do mean anything isn't 100% with the ECM like parameter spikes. This means that you could be staring at a major repair, or your speedometer sensor is contaminated and needs to be cleaned.
And the usual suspects are:
1. Severely discharged or a damaged battery check the terminals for damage or corrosion, check the battery cables at "BOTH" ends for loose, corroded, or broken connectors, "INSIDE" and outside the cable harness, perform connector wiggle test and check cables with an ohmmeter if necessary, you should have 12.5 volts or more and be able to pass a proper "LOAD" test if necessary, you may have a preliminary reading of 12.5 volts or more but little or zero amperage the battery is faulty and must be replaced, AGM batteries fail in this scenario more so than lead acid batteries.
2. Faulty charging system.
3. Faulty system sensor some models have up to 40 sensors
4. Faulty safety switches: run/off, ignition, clutch lever, neutral, side stand, tip over, fuel, and or their connections.
5. The engine got wet where it didn't like to get wet.
6. Faulty ignition circuit spark plugs, coils, cables etc.
7. Broken wire or worn insulation exposing wire to a ground situation especially inside wire harness at tight bends around fairing brackets, under dash panels, under fuel tanks over cylinder heads etc. Many harnesses are open on the ends that will allow water to enter and accumulate at v-bends.
Dielectric grease and contact cleaner are your best friends for wire/cable/harness connectors, look for corroded, broken, or loose pins/sockets.
For more information about your issue please visit the blue links below. Good luck and have a wonderful day.
Yamaha XT 125R 2005 Service Information
Harley Trouble Codes
motorcycle sensor abbreviation list
OEM parts for Yamaha
Yamaha XT 125 2006
Btw, I’m available to help over the phone in case u need at https://www.6ya.com/expert/gregg_c0ec1df182c7330e