How to interface this no nc c switch with arduino

When debugging code, add Serial print statements at strategic places to print variables to the serial monitor.

This allows you to check these variable values and confirm they are what you think they are.


“ it didn't work please can u tell me why”

Always tell us what didn’t work.