Engine light or ECU fault: read the codes before guessing
When a check engine light appears, I think the worst move is changing sensors at random. Lambda sensor, coil, injector, battery, regulator: without the ECU code you are mostly guessing.
I would read the codes, photograph them, clear only after saving them, ride again, then see which faults return.

Discussion
5 repliesExactly. Stored and current faults are different. A code that never returns after clearing is not the same as a live fault.
Thomas here. Read the fault memory first, then inspect wiring and connectors before buying sensors. Many ECU faults are voltage, ground or connector issues. If the same code returns after a controlled ride, then you have a direction for diagnosis instead of a shopping list.
For basic code reading on compatible vehicles, this is the kind of tool people mean: OBD2 scanner for ECU codes. Affiliate note: this is an affiliate link. On motorcycles, always confirm the bike uses OBD2 or that you have the correct adapter and protocol before buying.
Take a photo before clearing. People clear the code, forget the number, then the forum has to diagnose a ghost.
And check battery voltage first. Low voltage can create very theatrical fault lists.
I will read and save codes before touching parts. That already feels less chaotic.