This exercise with the Arduino is inspired by the course: Embedded Systems – Shape The World Chapter : Finite State Machines By Dr. Jon Valvano , professor in the Department of Electrical and…