Help with programming a tester!

You should avoid using the 5v Arduino pin supplying power to a relay coil.


In the Arduino IDE, use Ctrl T or CMD T to format your code then copy the complete sketch.

Use the </> icon from the ‘reply menu’ to attach the copied sketch.