Any serious software project should have good tests and much work has been done to automate that process. One challenging area for testing is low-level devices, such as an Arduino, whose primary ...
delay(500); //We need to see wether led is switched on or not, se we are giving delay, 1000 miliseconds approx 1 sec.