Arduino code was written using the arduino compiler “Sketch” and uploaded to the Arduino via USB cable.

Link for the arduino code is:

Click here for the Arduino Code

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Program Flow Chart