Traffic signal controls access to retail shops and eateries System counts visitors and sounds an alarm in the event of…