Board does not run the sketch
Check selected board and processor, USB cable/data connection, port, bootloader requirements, board power and compile errors. Confirm that the correct board package and upload method are selected.
Input values jump or stick
Check common ground, sensor wiring, ADC input limits, reference voltage, loose connections and noise. A floating analogue input has no stable defined voltage.
LED or PWM does not respond
Confirm the pin supports PWM on that board, the LED polarity and resistor, output mode, supply and whether another peripheral claims the pin.
Timing drifts or tasks are missed
Look for long blocking delays, slow serial printing, heavy calculations, interrupt load and timing assumptions. Use hardware timers or a suitable real-time design where deadlines require it.
Random reset or unstable operation
Investigate supply droop, motor/relay transients, grounding, decoupling, watchdog resets, stack/heap use and brown-out behaviour. Separate noisy load power from logic supply where appropriate.
Firmware becomes hard to extend
Separate input reading, decision logic and output updates. Use named constants, small functions, explicit states, clear units and comments that explain why rather than restating the code.