Your build starts here
Replace bracketed details with your own goal, context, and checks. Keep the first build small enough to inspect.
Implement a sensor-reading exercise for [board and sensor] using the documented pin and signal contract. First test parsing, units, and error handling with simulated values. Separate sampling, processing, and reporting schedules so a slow reporting operation does not block all input handling. Account for the platform's elapsed-time behavior and keep interrupt work minimal where used. Verify valid, out-of-range, missing, and noisy readings, plus repeated events. Report timing observations and hardware assumptions; keep outputs limited to harmless indicators during this exercise.Make this prompt yours
Replace bracketed fields with your goal, current behavior, and relevant evidence. Keep requirements that affect the task. Check the result against the acceptance criteria you supplied.
The docs behind it
These references explain the underlying concepts and APIs. The prompt templates and project plans are original examples to adapt to your own setup.
- Arduino Reference — Analog-to-digital readings
- Arduino Reference — Digital pin modes
- Arduino Reference — Elapsed time with millis
Documentation links checked .
Editorial review · October 28, 2026
Limited: Original instructional template; not executed. Nonblocking-loop prompt is an original, harmless observation/indicator exercise; hardware timing and electrical behavior were not tested.